spec/spec_helper.rb in wirecard_sepa-0.0.4 vs spec/spec_helper.rb in wirecard_sepa-0.0.5

- old
+ new

@@ -22,9 +22,17 @@ creditor_id: 'DE00000000000000000000', }) end VCR.configure do |config| + cache_timeout = if ENV['CACHE'] == '0' + 1 + else + THIRTY_DAYS_IN_SECONDS = 60 * 60 * 24 * 30 + end + config.default_cassette_options = { + re_record_interval: cache_timeout + } config.cassette_library_dir = "spec/support/fixtures/vcr" config.hook_into :typhoeus end require 'wirecard_sepa'