]> git.openstreetmap.org Git - rails.git/blobdiff - lib/tasks/testing.rake
Fix new rubocop warnings
[rails.git] / lib / tasks / testing.rake
index 924698c7fb115584a78dc11e2bd2dff87ba45f23..720530256e59494ceac956fb43d828c177031e90 100644 (file)
@@ -1,5 +1,5 @@
-task "test" do
-  Rails::TestUnit::Runner.rake_run(["test/system"])
+task :test => :environment do
+  Rails::TestUnit::Runner.rake_run(["test/system"]) unless ENV.key?("TEST")
 end
 
 namespace :test do