Skip to content

Commit

Permalink
Allow the running of Rails/Merb integration specs independently
Browse files Browse the repository at this point in the history
  • Loading branch information
joshknowles committed Dec 30, 2008
1 parent 7044eb5 commit b222d3f
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions Rakefile
Expand Up @@ -29,7 +29,7 @@ spec = Gem::Specification.new do |s|

# Dependencies
s.add_dependency "nokogiri", ">= 1.1.0"

s.rubyforge_project = "webrat"
end

Expand Down Expand Up @@ -105,15 +105,23 @@ end

namespace :spec do
desc "Run the integration specs"
task :integration do
Dir.chdir "spec/integration/rails" do
result = system "rake test:integration"
raise "Tests failed" unless result
task :integration => ["integration:rails", "integration:merb"]

namespace :integration do
desc "Run the Rails integration specs"
task :rails do
Dir.chdir "spec/integration/rails" do
result = system "rake test:integration"
raise "Tests failed" unless result
end
end

Dir.chdir "spec/integration/merb" do
result = system "rake spec"
raise "Tests failed" unless result

desc "Run the Merb integration specs"
task :merb do
Dir.chdir "spec/integration/merb" do
result = system "rake spec"
raise "Tests failed" unless result
end
end
end
end
Expand Down

0 comments on commit b222d3f

Please sign in to comment.