]> git.openstreetmap.org Git - rails.git/blobdiff - lib/tasks/testing.rake
Bump webmock from 3.9.4 to 3.9.5
[rails.git] / lib / tasks / testing.rake
index ec0bd945911f204fb9d0e111d9c2d04fb79632cf..720530256e59494ceac956fb43d828c177031e90 100644 (file)
@@ -1,5 +1,10 @@
+task :test => :environment do
+  Rails::TestUnit::Runner.rake_run(["test/system"]) unless ENV.key?("TEST")
+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