Skip to content

Commit

Permalink
Try to reproduce an old issue dealing with stale matcher data
Browse files Browse the repository at this point in the history
  • Loading branch information
laserlemon authored Apr 23, 2024
1 parent c04e13d commit c541620
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/wait_for_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@
wait_for { progress }.to raise_error(StandardError)
}.to raise_error(RSpec::Expectations::ExpectationNotMetError)
end

it "uses a new matcher instance for each block call" do
expect {
wait_for { progress.chars }.to contain_exactly(".", ".")
}.not_to raise_error
end
end

describe "not_to" do
Expand Down

0 comments on commit c541620

Please sign in to comment.