spec/lib/vcr/cassette_spec.rb in vcr-3.0.0 vs spec/lib/vcr/cassette_spec.rb in vcr-3.0.1
- old
+ new
@@ -271,10 +271,10 @@
end
yaml = YAML.dump("http_interactions" => interactions)
allow(::File).to receive(:exist?).with(file_name).and_return(true)
allow(::File).to receive(:size?).with(file_name).and_return(true)
- allow(::File).to receive(:read).with(file_name).and_return(yaml)
+ allow(::File).to receive(:binread).with(file_name).and_return(yaml)
end
context 'and the earliest recorded interaction was recorded less than 7 days ago' do
let(:timestamps) do [
Time.now - 6.days + 60,