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