lib/pah/files/spec/support/vcr.rb in pah-0.0.15 vs lib/pah/files/spec/support/vcr.rb in pah-0.0.16
- old
+ new
@@ -2,6 +2,14 @@
VCR.configure do |c|
c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
c.hook_into :webmock
c.configure_rspec_metadata!
+
+ # Filter Rails secrets that are strings or numbers
+ secrets_to_filter = Rails.application.secrets.select do |key, value|
+ value.is_a?(String) || value.is_a?(Numeric)
+ end
+ secrets_to_filter.each do |key, value|
+ c.filter_sensitive_data("<#{key.upcase}>") { value }
+ end
end