Module: RakeHelpers

Defined in:
lib/generators/saucy/features/templates/step_definitions/cron_steps.rb

Instance Method Summary collapse

Instance Method Details

#fake_rakeObject



4
5
6
7
8
9
10
11
12
# File 'lib/generators/saucy/features/templates/step_definitions/cron_steps.rb', line 4

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