Permalink
Browse files

Use full hardcore integration tests

  • Loading branch information...
1 parent f401912 commit 1553347fdc24682e592a51796ed5b76f0223f08f @DylanLacey DylanLacey committed Jun 2, 2013
Showing with 10 additions and 13 deletions.
  1. +10 −13 Rakefile
View
@@ -13,21 +13,18 @@ namespace :spec do
s.rspec_opts = rspec_options
end
- namespace :integration do
- [:rspec, :testunit].each do |ns|
- RSpec::Core::RakeTask.new(ns) do |s|
- s.pattern = "spec/integration/#{ns.to_s}/spec/**_spec.rb"
- s.rspec_opts = rspec_options
- end
- end
- end
+ task :integration => [:rspec, :testunit]
- namespace :rspec do
+ task :rspec do
desc "Run an integration test with rspec and capybara"
- task :capybara do |t|
- ensure_rvm!
- sh "(cd spec/integration/rspec && ./run-test.sh)"
- end
+ ensure_rvm!
+ sh "(cd spec/integration/rspec && ./run-test.sh)"
+ end
+
+ task :testunit do
+ desc "Run an integration test with testunit"
+ ensure_rvm!
+ sh "(cd spec/integration/testunit && ./run-test.sh)"
end
end

0 comments on commit 1553347

Please sign in to comment.