spec/spec_helper.rb in danger-jira_sync-0.0.1 vs spec/spec_helper.rb in danger-jira_sync-0.0.2
- old
+ new
@@ -37,9 +37,18 @@
end
VCR.configure do |config|
config.cassette_library_dir = "#{File.dirname(__FILE__)}/fixtures/vcr_cassettes"
config.hook_into :webmock
+ config.filter_sensitive_data("<GITHUB_TOKEN>") { ENV["DANGER_GITHUB_API_TOKEN"] }
+ config.filter_sensitive_data("<JIRA_URL>") { ENV["DANGER_JIRA_URL"] }
+ config.filter_sensitive_data("<JIRA_USER>") { ENV["DANGER_JIRA_USERNAME"] }
+ config.filter_sensitive_data("<JIRA_PASS>") { ENV["DANGER_JIRA_API_TOKEN"] }
+
+ config.before_record do |interaction|
+ interaction.response.headers.delete("Set-Cookie")
+ interaction.request.headers.delete("Authorization")
+ end
end
require "danger_plugin"
# These functions are a subset of https://github.com/danger/danger/blob/master/spec/spec_helper.rb