Skip to content

Instantly share code, notes, and snippets.

@bookwyrm
Last active December 22, 2015 07:18
Show Gist options
  • Save bookwyrm/6436901 to your computer and use it in GitHub Desktop.
Save bookwyrm/6436901 to your computer and use it in GitHub Desktop.
Filter sensitive data in a VCR request
VCR.configure do |c|
c.cassette_library_dir = "#{root}/spec/vcr"
c.filter_sensitive_data('<PIVOTAL_TOKEN>') do |interactive|
$ticket_integration_settings['pivotal-token']
end
c.filter_sensitive_data('<PIVOTAL_REPO>') do |interactive|
$ticket_integration_settings['pivotal-repository']
end
c.filter_sensitive_data('<PIVOTAL_REPO_ID>') do |interactive|
$ticket_integration_settings['pivotal-repository-id']
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment