VCR to censor ENV['CHANGELOG_GITHUB_TOKEN']

This commit is contained in:
Olle Jonsson
2016-07-02 21:48:08 +02:00
parent 0fc6da1a75
commit 559defcb55
13 changed files with 16 additions and 12 deletions
+4
View File
@@ -46,6 +46,10 @@ VCR.configure do |c|
preserve_exact_body_bytes: true, preserve_exact_body_bytes: true,
decode_compressed_response: true decode_compressed_response: true
} }
c.filter_sensitive_data('<GITHUB_TOKEN>') {
"token #{ENV.fetch('CHANGELOG_GITHUB_TOKEN')}"
}
c.configure_rspec_metadata! c.configure_rspec_metadata!
c.hook_into :webmock, :faraday c.hook_into :webmock, :faraday
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long