1
0
Fork 0
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:
Mike Perham 2014-03-10 20:51:10 -07:00
parent 3d117e6051
commit 1acd8ac627

View file

@ -45,6 +45,11 @@ class TestSidekiq < Sidekiq::Test
Sidekiq.on('boot') Sidekiq.on('boot')
end end
assert_match /Symbols only/, e.message 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 end
end end