Sha256: 4bfa8832735e81574bb1d321e1c911f05decbfd3842dee55e589922bacfa3c05

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

require 'rake'

class FakeRake
  include Rake::DSL

  def execute
    old_rake = Rake.application
    rake = Rake::Application.new
    Rake.application = rake
    task :environment
    yield(rake)
  ensure
    Rake.application = old_rake
  end
end

When /^the daily Saucy jobs are processed$/ do
  FakeRake.new.execute do |rake|
    Saucy::Engine.load_tasks
    rake['saucy:daily'].invoke
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
saucy-0.16.1 features/step_definitions/engine/cron_steps.rb
saucy-0.16.0 features/step_definitions/engine/cron_steps.rb