mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Test correct event call
This commit is contained in:
parent
3d117e6051
commit
1acd8ac627
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ class TestSidekiq < Sidekiq::Test
|
|||
Sidekiq.on('boot')
|
||||
end
|
||||
assert_match /Symbols only/, e.message
|
||||
Sidekiq.on(:boot) do
|
||||
1 + 1
|
||||
end
|
||||
|
||||
assert_equal 2, Sidekiq.options[:lifecycle_events][:boot].first.call
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue