mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
Delete the "test" task, we only use rspec
This commit is contained in:
parent
b8101ed161
commit
af573781da
1 changed files with 2 additions and 16 deletions
18
Rakefile
18
Rakefile
|
@ -3,7 +3,7 @@
|
|||
require "bundler"
|
||||
Bundler::GemHelper.install_tasks
|
||||
|
||||
desc "Set a relevant database.yml for testing"
|
||||
desc "Write a database.yml for the specified RDBMS"
|
||||
task :prepare do
|
||||
ENV["DB"] ||= "sqlite"
|
||||
FileUtils.cp(
|
||||
|
@ -12,20 +12,6 @@ task :prepare do
|
|||
)
|
||||
end
|
||||
|
||||
require "rake/testtask"
|
||||
desc "Run tests on PaperTrail with Test::Unit."
|
||||
Rake::TestTask.new(:test) do |t|
|
||||
t.libs << "lib"
|
||||
t.libs << "test"
|
||||
t.pattern = "test/**/*_test.rb"
|
||||
t.verbose = false
|
||||
|
||||
# Enabling ruby interpreter warnings (-w) is, sadly, impractical. There are
|
||||
# too many noisy warnings that we have no control over, e.g. caused by libs we
|
||||
# depend on.
|
||||
t.warning = false
|
||||
end
|
||||
|
||||
require "rspec/core/rake_task"
|
||||
desc "Run tests on PaperTrail with RSpec"
|
||||
task(:spec).clear
|
||||
|
@ -37,4 +23,4 @@ require "rubocop/rake_task"
|
|||
RuboCop::RakeTask.new
|
||||
|
||||
desc "Default: run all available test suites"
|
||||
task default: %i[rubocop prepare test spec]
|
||||
task default: %i[rubocop prepare spec]
|
||||
|
|
Loading…
Reference in a new issue