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.11.2 | lib/generators/saucy/features/templates/step_definitions/cron_steps.rb |