Permalink
Browse files

rake generate depends on generate:finish; generate:finish depends on …

…generate:suspenders
  • Loading branch information...
mike-burns committed Jun 10, 2010
1 parent 85a8b6e commit 202274a8a8196f6b111f1403f05d9e9cbb1a4747
Showing with 3 additions and 2 deletions.
  1. +3 −2 Rakefile
View
@@ -16,17 +16,18 @@ Cucumber::Rake::Task.new
namespace :test do
desc "A full suspenders app's test suite"
- task :full => ['generate:suspenders', 'generate:finish', 'cucumber', 'destroy:suspenders']
+ task :full => ['generate', 'cucumber', 'destroy:suspenders']
end
+task :generate => ['generate:finish']
namespace :generate do
desc 'Suspend a new project. Pass REPO=... to change the Suspenders repo.'
task :suspenders do
sh './bin/suspenders', 'create', TEST_PROJECT, ENV['REPO'].to_s
end
desc 'Finishing touches'
- task :finish do
+ task :finish => ['suspenders'] do
open(File.join(TEST_PROJECT, 'config', 'environments', 'cucumber.rb'), 'a') do |f|
f.puts "config.action_mailer.default_url_options = { :host => 'localhost:3000' }"
end

0 comments on commit 202274a

Please sign in to comment.