about summary refs log tree commit diff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-02-11 22:22:25 +0100
committerGitHub <noreply@github.com>2022-02-11 22:22:25 +0100
commit59b7ba451b4ded817c98abfa8c88738de0484917 (patch)
tree86a6af23cb16f45a5bfb660d8edd70ad57d4a30c /spec/spec_helper.rb
parent776e337b8d2aa66440bc4565617b5440ca781e1a (diff)
parenta34e4f7e279e14b304ed81f698feb19d18a74d04 (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.rb7
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