spec/statused_routines_spec.rb in lev-8.1.0 vs spec/statused_routines_spec.rb in lev-9.0.0
- old
+ new
@@ -1,9 +1,9 @@
require 'spec_helper'
class StatusedRoutine
- lev_routine
+ lev_routine use_jobba: true
protected
def exec(*args)
status.set_progress(9, 10)
@@ -11,11 +11,9 @@
fatal_error(code: 'blah', message: 'hi')
end
end
RSpec.describe 'Statused Routines' do
-
- before { Lev::Jobba.use_jobba }
let(:routine_class) { StatusedRoutine }
let(:args) { ['some arg'] }
let(:status_id) { routine_class.perform_later(*args) }
let(:status) { Jobba::Status.find(status_id) }