Commit 272c829c9a3b29d8b047db8d64d6203133619978
1 parent
3a39ba30
Exists in
master
and in
18 other branches
Added failing test for deletes with routing and queue callback [skip ci]
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
test/routing_test.rb
... | ... | @@ -29,4 +29,14 @@ class RoutingTest < Minitest::Test |
29 | 29 | Song.destroy_all |
30 | 30 | end |
31 | 31 | end |
32 | + | |
33 | + def test_routing_queue | |
34 | + skip # unless defined?(ActiveJob) && defined?(Redis) | |
35 | + | |
36 | + with_options(Song, routing: true, callbacks: :queue) do | |
37 | + store_names ["Dollar Tree"], Song | |
38 | + Song.destroy_all | |
39 | + Searchkick::ProcessQueueJob.perform_later(class_name: "Song") | |
40 | + end | |
41 | + end | |
32 | 42 | end | ... | ... |