Sha256: 0caf9226542afe7959430ed6f41377c35ee5f0860c58df9b7c8f3db886911f76

Contents?: true

Size: 398 Bytes

Versions: 60

Compression:

Stored size: 398 Bytes

Contents

require 'rake'

module RakeHelpers
  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.new.load_tasks
    rake['saucy:daily'].invoke
  end
end

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
saucy-0.10.10 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.10.9 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.10.8 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.10.7 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.10.6 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saasy-0.0.2.alpha3 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saasy-0.0.2.alpha2 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saasy-0.0.2.alpha1 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.10.5 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.10.4 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.10.3 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.10.2 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.10.1 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.10.0 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.9.1 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.9.0 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.8.5 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.8.4 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saucy-0.8.3 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb
saasy-0.0.1 lib/generators/saucy/features/templates/step_definitions/cron_steps.rb