Sha256: ac04a55a56ca2dd29a326736a208c261e2671ce217c4863ad804f9501754ebd0

Contents?: true

Size: 326 Bytes

Versions: 46

Compression:

Stored size: 326 Bytes

Contents

module Marty::RSpec::DelayedJobHelpers
  def start_delayed_job
    `RAILS_ENV=test #{Rails.root}/script/delayed_job -n 4 stop | cat`
    `RAILS_ENV=test #{Rails.root}/script/delayed_job -n 4 start | cat`
    sleep 5
  end

  def stop_delayed_job
    `RAILS_ENV=test #{Rails.root}/script/delayed_job -n 4 stop | cat`
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
marty-6.1.0 spec/support/delayed_job_helpers.rb
marty-5.2.0 spec/support/delayed_job_helpers.rb
marty-5.1.4 spec/support/delayed_job_helpers.rb
marty-5.1.3 spec/support/delayed_job_helpers.rb
marty-5.1.2 spec/support/delayed_job_helpers.rb
marty-5.1.1 spec/support/delayed_job_helpers.rb
marty-5.1.0 spec/support/delayed_job_helpers.rb
marty-3.1.0 spec/support/delayed_job_helpers.rb
marty-3.0.1 spec/support/delayed_job_helpers.rb
marty-4.0.0.rc2 spec/support/delayed_job_helpers.rb
marty-3.0.0 spec/support/delayed_job_helpers.rb
marty-2.9.3 spec/support/delayed_job_helpers.rb
marty-2.9.2 spec/support/delayed_job_helpers.rb
marty-2.9.1 spec/support/delayed_job_helpers.rb
marty-2.8.0 spec/support/delayed_job_helpers.rb
marty-2.7.3 spec/support/delayed_job_helpers.rb
marty-2.7.2 spec/support/delayed_job_helpers.rb
marty-2.7.1 spec/support/delayed_job_helpers.rb
marty-2.7.0 spec/support/delayed_job_helpers.rb
marty-2.6.8 spec/support/delayed_job_helpers.rb