diff --git a/test/workers/generic_worker_test.rb b/test/workers/generic_worker_test.rb index 3ea8b0f38..f5972ec9d 100644 --- a/test/workers/generic_worker_test.rb +++ b/test/workers/generic_worker_test.rb @@ -12,7 +12,7 @@ def teardown test "should run a job, without raising an error, for a method that takes a hash as a parameter" do Sidekiq::Testing.inline! - assert_nothing_raised do + assert_difference "Team.where(name: 'BackgroundTeam', slug: 'background-team').count" do GenericWorker.perform_async('Team', 'create!', name: 'BackgroundTeam', slug: 'background-team') end end