(Tagging @sam
)
So, I am running LOAD_PLUGINS=1 bin/rake autospec, but other specs fail, so my spec file is never picked. Is it normal that the first time it runs it takes more than 10 minutes?
This is the output:
Failures:
1) UsersController#perform_account_activation valid token welcome message enqueues a welcome message if the user object indicates so
Failure/Error: expect(Jobs::SendSystemMessage.jobs.size).to eq(1)
expected: 1
got: 0
(compared using ==)
# ./spec/requests/users_controller_spec.rb:34:in `block (5 levels) in <main>'
2) User.enqueue_welcome_message enqueues the system message
Failure/Error: Jobs.expects(:enqueue).with(:send_system_message, user_id: user.id, message_type: 'welcome_user')
Mocha::ExpectationError:
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Jobs.enqueue(:send_system_message, {:user_id => 3883, :message_type => "welcome_user"})
# ./spec/models/user_spec.rb:152:in `block (3 levels) in <main>'
In total, 8 specs are failing (in addition to mine)…
EDIT: an update. bin/rake autospec (without LOAD_PLUGINS=1) fails too, with 4 failures instead of 8.