mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use before
instead of before_each
(same for after)
This commit is contained in:
parent
4906dfae0d
commit
a6149b2671
8 changed files with 28 additions and 28 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue