Sha256: db7e6ea78d86d34fb49e9acc175d211e337f933e279f4ce2572c656f1e7d22c8

Contents?: true

Size: 415 Bytes

Versions: 21

Compression:

Stored size: 415 Bytes

Contents

require 'rake'

module RakeHelpers
  include Rake::DSL

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

World(RakeHelpers)

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
saucy-0.15.2 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.15.1 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.15.0 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.14.5 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.14.3 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.14.2 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.14.1 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.14.0 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.13.3 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.13.2 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.13.1 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.13.0 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.12.5 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.12.4 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.12.3 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.12.2 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.12.1 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.12.0 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.11.5 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.11.3 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb