Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 202274a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Expand Up @@ -16,17 +16,18 @@ Cucumber::Rake::Task.new


namespace :test do namespace :test do
desc "A full suspenders app's test suite" desc "A full suspenders app's test suite"
task :full => ['generate:suspenders', 'generate:finish', 'cucumber', 'destroy:suspenders'] task :full => ['generate', 'cucumber', 'destroy:suspenders']
end end


task :generate => ['generate:finish']
namespace :generate do namespace :generate do
desc 'Suspend a new project. Pass REPO=... to change the Suspenders repo.' desc 'Suspend a new project. Pass REPO=... to change the Suspenders repo.'
task :suspenders do task :suspenders do
sh './bin/suspenders', 'create', TEST_PROJECT, ENV['REPO'].to_s sh './bin/suspenders', 'create', TEST_PROJECT, ENV['REPO'].to_s
end end


desc 'Finishing touches' desc 'Finishing touches'
task :finish do task :finish => ['suspenders'] do
open(File.join(TEST_PROJECT, 'config', 'environments', 'cucumber.rb'), 'a') do |f| open(File.join(TEST_PROJECT, 'config', 'environments', 'cucumber.rb'), 'a') do |f|
f.puts "config.action_mailer.default_url_options = { :host => 'localhost:3000' }" f.puts "config.action_mailer.default_url_options = { :host => 'localhost:3000' }"
end end
Expand Down

0 comments on commit 202274a

Please sign in to comment.