X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/34e3e51456774127d43408b7ab65c24f41373f62..826b70fdc5f44ab2f6bde94b8ab67bf98ee43981:/lib/tasks/testing.rake diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index ec0bd9459..c9b384cfe 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -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