X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b095b59d5e0ee805e49980af80b21bd1acff1345..e3a4cfd420ecd20aed61d843407643aad30ecd58:/lib/tasks/testing.rake diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 7a915c228..720530256 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -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