rails/actionmailbox/Rakefile

24 lines
451 B
Ruby
Raw Normal View History

2018-12-25 04:16:22 +08:00
# frozen_string_literal: true
require "bundler/setup"
require "bundler/gem_tasks"
require "rake/testtask"
task :package
2018-12-25 04:16:22 +08:00
Rake::TestTask.new do |t|
t.libs << "test"
t.pattern = "test/**/*_test.rb"
t.verbose = true
end
namespace :test do
task :isolated do
FileList["test/**/*_test.rb"].exclude("test/dummy/**/*").all? do |file|
sh(Gem.ruby, "-w", "-Ilib", "-Itest", file)
end || raise("Failures")
end
end
2018-12-25 04:16:22 +08:00
task default: :test