diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-02-11 22:22:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 22:22:25 +0100 |
commit | 59b7ba451b4ded817c98abfa8c88738de0484917 (patch) | |
tree | 86a6af23cb16f45a5bfb660d8edd70ad57d4a30c /spec/spec_helper.rb | |
parent | 776e337b8d2aa66440bc4565617b5440ca781e1a (diff) | |
parent | a34e4f7e279e14b304ed81f698feb19d18a74d04 (diff) |
Merge pull request #1684 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b6d127a08..0414ba9ed 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -57,3 +57,10 @@ end def json_str_to_hash(str) JSON.parse(str, symbolize_names: true) end + +def expect_push_bulk_to_match(klass, matcher) + expect(Sidekiq::Client).to receive(:push_bulk).with(hash_including({ + "class" => klass, + "args" => matcher + })) +end |