From 344abb64182981bc20ba73645b53e180e3d65db6 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Thu, 11 May 2017 10:12:49 +1000 Subject: [PATCH] specify first argument as per this: http://stackoverflow.com/questions/43881911/ruby-mocha-expect-the-first-argument-to-be-a-symbol --- spec/controllers/discourse_donations/charges_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/discourse_donations/charges_controller_spec.rb b/spec/controllers/discourse_donations/charges_controller_spec.rb index 3145a40..6f82a93 100644 --- a/spec/controllers/discourse_donations/charges_controller_spec.rb +++ b/spec/controllers/discourse_donations/charges_controller_spec.rb @@ -58,7 +58,7 @@ module DiscourseDonations before do SiteSetting.stubs(:discourse_donations_enable_create_accounts).returns(true) - Jobs.expects(:enqueue).once + Jobs.expects(:enqueue).with(:donation_user, anything) end it 'enqueues the user account create' do