spec/spec_helper.rb in gush-3.0.0 vs spec/spec_helper.rb in gush-4.0.0
- old
+ new
@@ -29,12 +29,12 @@
run PersistFirstJob, after: FetchFirstJob, before: NormalizeJob
end
end
class ParameterTestWorkflow < Gush::Workflow
- def configure(param)
- run Prepare if param
+ def configure(param, kwarg: false)
+ run Prepare if param || kwarg
end
end
class WaitableTestWorkflow < Gush::Workflow
def configure
@@ -118,14 +118,14 @@
config.before(:each) do
clear_enqueued_jobs
clear_performed_jobs
- Gush.configure do |config|
- config.redis_url = REDIS_URL
- config.gushfile = GUSHFILE
- config.locking_duration = defined?(locking_duration) ? locking_duration : 2
- config.polling_interval = defined?(polling_interval) ? polling_interval : 0.3
+ Gush.configure do |c|
+ c.redis_url = REDIS_URL
+ c.gushfile = GUSHFILE
+ c.locking_duration = defined?(locking_duration) ? locking_duration : 2
+ c.polling_interval = defined?(polling_interval) ? polling_interval : 0.3
end
end
config.after(:each) do
clear_enqueued_jobs