rails/activemodel/Rakefile

24 lines
507 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "rake/testtask"
2016-08-07 01:37:12 +08:00
task default: :test
2008-06-28 14:29:47 +08:00
task :package
Rake::TestTask.new do |t|
2010-03-01 08:26:00 +08:00
t.libs << "test"
t.test_files = FileList["#{__dir__}/test/cases/**/*_test.rb"]
2009-09-06 08:10:21 +08:00
t.warning = true
2012-02-03 21:01:24 +08:00
t.verbose = true
t.ruby_opts = ["--dev"] if defined?(JRUBY_VERSION)
2008-06-28 14:29:47 +08:00
end
namespace :test do
task :isolated do
Dir.glob("#{__dir__}/test/**/*_test.rb").all? do |file|
sh(Gem.ruby, "-w", "-I#{__dir__}/lib", "-I#{__dir__}/test", file)
end || raise("Failures")
end
2009-05-13 16:10:37 +08:00
end