Allow the running of Rails/Merb integration specs independently

This commit is contained in:
Josh Knowles 2008-12-29 22:07:56 -05:00
parent 7044eb5863
commit b222d3fde3

View File

@ -105,17 +105,25 @@ end
namespace :spec do namespace :spec do
desc "Run the integration specs" desc "Run the integration specs"
task :integration do task :integration => ["integration:rails", "integration:merb"]
namespace :integration do
desc "Run the Rails integration specs"
task :rails do
Dir.chdir "spec/integration/rails" do Dir.chdir "spec/integration/rails" do
result = system "rake test:integration" result = system "rake test:integration"
raise "Tests failed" unless result raise "Tests failed" unless result
end end
end
desc "Run the Merb integration specs"
task :merb do
Dir.chdir "spec/integration/merb" do Dir.chdir "spec/integration/merb" do
result = system "rake spec" result = system "rake spec"
raise "Tests failed" unless result raise "Tests failed" unless result
end end
end end
end
end end
task :default => :spec task :default => :spec