Created
October 26, 2012 19:19
-
-
Save gustin/3960854 to your computer and use it in GitHub Desktop.
Minitest in spec directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake/testtask' | |
Rake::TestTask.new do |test_task| | |
test_task.libs.push 'spec' | |
test_task.name = 'spec' | |
test_task.pattern = 'spec/**/*_spec.rb' | |
test_task.verbose = true | |
end | |
task default: :spec | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If using Rails with a database you'll want, Rake::TestTask.new(test: 'db:test:prepare')