Skip to content

Instantly share code, notes, and snippets.

@maceto
Created March 12, 2015 21:09
Show Gist options
  • Save maceto/b95fcde5986a1f266175 to your computer and use it in GitHub Desktop.
Save maceto/b95fcde5986a1f266175 to your computer and use it in GitHub Desktop.
require 'rake/testtask'
task default: 'test:all'
namespace :test do
Rake::TestTask.new(:all) do |t|
t.pattern = "test/**/*_spec.rb"
t.verbose = true
end
Rake::TestTask.new(:models) do |t|
t.pattern = "test/models/**/*_spec.rb"
t.verbose = true
end
Rake::TestTask.new(:routes) do |t|
t.pattern = "test/routes/**/*_spec.rb"
t.verbose = true
end
Rake::TestTask.new(:libs) do |t|
t.pattern = "test/libs/**/*_spec.rb"
t.verbose = true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment