summaryrefslogtreecommitdiff
path: root/spec/support/artifice/vcr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/artifice/vcr.rb')
-rw-r--r--spec/support/artifice/vcr.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/artifice/vcr.rb b/spec/support/artifice/vcr.rb
index 3d0c2c6dd6..9db0053e6c 100644
--- a/spec/support/artifice/vcr.rb
+++ b/spec/support/artifice/vcr.rb
@@ -36,6 +36,7 @@ class BundlerVCRHTTP < Net::HTTP
def recorded_response?
return true if ENV["BUNDLER_SPEC_PRE_RECORDED"]
+ return false if ENV["BUNDLER_SPEC_FORCE_RECORD"]
request_pair_paths.all? {|f| File.exist?(f) }
end
@@ -77,7 +78,7 @@ class BundlerVCRHTTP < Net::HTTP
end
def request_pair_paths
- %w(request response).map do |kind|
+ %w[request response].map do |kind|
File.join(CASSETTE_PATH, CASSETTE_NAME, file_name_for_key(key + [kind]))
end
end