Use before instead of before_each (same for after)

This commit is contained in:
Michael Miller 2022-11-04 16:56:03 -06:00
parent 4906dfae0d
commit a6149b2671
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF
8 changed files with 28 additions and 28 deletions

View file

@ -169,7 +169,7 @@ Spectator.describe Spectator::Matchers::ReceiveMatcher do
end
context "with method calls" do
before_each do
before do
dbl.test_method
dbl.test_method(1, "wrong", :xyz, foo: "foobarbaz")
dbl.irrelevant("foo")
@ -289,7 +289,7 @@ Spectator.describe Spectator::Matchers::ReceiveMatcher do
pre_condition { expect(match_data).to be_a(failed_match) }
before_each do
before do
dbl.test_method
dbl.test_method(1, "test", :xyz, foo: "foobarbaz")
dbl.irrelevant("foo")