mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-21 18:42:29 +01:00
Refactor test task
This commit is contained in:
parent
0b95a177c2
commit
0a88f09c73
@ -7,12 +7,12 @@ rescue LoadError
|
||||
return
|
||||
end
|
||||
|
||||
Rake::TestTask.new(test: :environment) do |t|
|
||||
t.libs.push("lib")
|
||||
Rake::TestTask.new(spec: :environment) do |t|
|
||||
t.libs << "lib"
|
||||
t.libs << "test"
|
||||
t.test_files = FileList["spec/**/*_spec.rb"]
|
||||
t.ruby_opts += ["-W0"]
|
||||
end
|
||||
|
||||
RuboCop::RakeTask.new
|
||||
|
||||
task default: ["rubocop", "db:test:prepare", "test"]
|
||||
task default: ["rubocop", "db:test:prepare", "spec"]
|
||||
|
Loading…
Reference in New Issue
Block a user