rails/actionmailer/Rakefile

26 lines
481 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "rake/testtask"
desc "Default Task"
task default: [ :test ]
task :package
# Run the unit tests
Rake::TestTask.new { |t|
t.libs << "test"
t.pattern = "test/**/*_test.rb"
2009-11-10 13:42:17 +08:00
t.warning = true
2012-02-03 21:01:24 +08:00
t.verbose = true
t.ruby_opts = ["--dev"] if defined?(JRUBY_VERSION)
}
namespace :test do
task :isolated do
Dir.glob("test/**/*_test.rb").all? do |file|
sh(Gem.ruby, "-w", "-Ilib:test", file)
end || raise("Failures")
end
2009-05-13 16:10:37 +08:00
end