mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix bin/rake spec:realworld:record
Previously it was failing and not recording. Also, the `BUNDLER_SPEC_FORCE_RECORD` environment variable was forcing every request to be recorded, including duplicated requests to the same endpoint. That meant the recorded `versions` file would be incorrect because it would contain the result of the last request, which would be `304 NOT MODIFIED`. So, to rerecord, delete cassettes and let them be recorded when needed.
This commit is contained in:
parent
0ae5cd55e5
commit
0fb2a7fa1c
Notes:
git
2020-06-05 07:33:51 +09:00
1 changed files with 0 additions and 1 deletions
|
@ -31,7 +31,6 @@ 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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue