-
Couldn't load subscription status.
- Fork 85
Open
Description
I am trying to test dynamic schedules. As is suggested I included in my Gemfile:
gem 'resque-scheduler', require: 'resque_scheduler'
but I get error can not load such file -- resque_scheduler. I tried to include in environments/test.rb, but with same effect. I tried also to write simple test to be sure that gem is working:
describe Survey do
let!(:survey) { create(:survey) }
before do
ResqueSpec.reset!
end
it 'works' do
survey.update(title: 'Good')
expect(SendEmailsJob).to have_schedule_size_of(1)
end
end
update action triggers scheduling(via after_save callback)
And I had output:
ExpectationNotMetError: expected that SendEmailsJob would have 1 s
cheduled entries, but got 0 instead>>
And web interface of Resque shows me that I created new schedule. I need some clues what is going on.
Metadata
Metadata
Assignees
Labels
No labels