]> git.openstreetmap.org Git - rails.git/blobdiff - lib/tasks/testing.rake
Add /api/0.6/users to fetch multiple users
[rails.git] / lib / tasks / testing.rake
index 7a915c22858e8b9aaeb09a47832c1912f16e4c2a..c9b384cfe48e8ee9c4067949759dd20021bf5cd9 100644 (file)
@@ -1,5 +1,10 @@
+task "test" 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