Fix RSpec/MessageSpies
cop (#27751)
This commit is contained in:
parent
ae0d551d33
commit
49e2772064
19 changed files with 162 additions and 94 deletions
|
@ -53,7 +53,9 @@ def json_str_to_hash(str)
|
|||
end
|
||||
|
||||
def expect_push_bulk_to_match(klass, matcher)
|
||||
expect(Sidekiq::Client).to receive(:push_bulk).with(hash_including({
|
||||
allow(Sidekiq::Client).to receive(:push_bulk)
|
||||
yield
|
||||
expect(Sidekiq::Client).to have_received(:push_bulk).with(hash_including({
|
||||
'class' => klass,
|
||||
'args' => matcher,
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue