Allow the running of Rails/Merb integration specs independently
This commit is contained in:
parent
7044eb5863
commit
b222d3fde3
26
Rakefile
26
Rakefile
@ -29,7 +29,7 @@ spec = Gem::Specification.new do |s|
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
s.add_dependency "nokogiri", ">= 1.1.0"
|
s.add_dependency "nokogiri", ">= 1.1.0"
|
||||||
|
|
||||||
s.rubyforge_project = "webrat"
|
s.rubyforge_project = "webrat"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -105,15 +105,23 @@ 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"]
|
||||||
Dir.chdir "spec/integration/rails" do
|
|
||||||
result = system "rake test:integration"
|
namespace :integration do
|
||||||
raise "Tests failed" unless result
|
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
|
end
|
||||||
|
|
||||||
Dir.chdir "spec/integration/merb" do
|
desc "Run the Merb integration specs"
|
||||||
result = system "rake spec"
|
task :merb do
|
||||||
raise "Tests failed" unless result
|
Dir.chdir "spec/integration/merb" do
|
||||||
|
result = system "rake spec"
|
||||||
|
raise "Tests failed" unless result
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user