Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
  • Loading branch information
ryanseys and olleolleolle committed Oct 14, 2022
1 parent 78d81ef commit 1700922
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/lib/vcr/cassette_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ def stub_old_interactions(interactions)
[:all, :none, :new_episodes].each do |record_mode|
context "for a :record => :#{record_mode} cassette with previously recorded interactions" do
let(:drop_unused_requests) { false }

subject { VCR::Cassette.new('example', :record => record_mode, :match_requests_on => [:uri], drop_unused_requests: drop_unused_requests) }

before(:each) do
Expand Down Expand Up @@ -664,8 +665,10 @@ def interaction(response_body, request_attributes)
expect(saved_recorded_interactions.last).to eq(interaction_bar)
end
end

context "with drop_unused_requests option added to all" do
let(:drop_unused_requests) { true }

it "drops unused requests" do
expect(saved_recorded_interactions).to match_array([interaction_bar, interaction_foo_2])
end
Expand Down

0 comments on commit 1700922

Please sign in to comment.