Last active
December 22, 2015 07:18
-
-
Save bookwyrm/6436901 to your computer and use it in GitHub Desktop.
Filter sensitive data in a VCR request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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