]> git.openstreetmap.org Git - rails.git/blobdiff - lib/tasks/testing.rake
Make system tests run by default
[rails.git] / lib / tasks / testing.rake
index ffee7f050716f647146482a84a9e4f6ba5e4c4de..924698c7fb115584a78dc11e2bd2dff87ba45f23 100644 (file)
@@ -1,5 +1,10 @@
+task "test" do
+  Rails::TestUnit::Runner.rake_run(["test/system"])
+end
+
 namespace :test do
-  Rails::TestTask.new(lib: "test:prepare") do |t|
-    t.pattern = "test/lib/**/*_test.rb"
+  task "lib" => "test:prepare" do
+    $LOAD_PATH << "test"
+    Rails::TestUnit::Runner.rake_run(["test/lib"])
   end
 end