Add spec:unit Rake task

This commit is contained in:
Miles Gould committed 2017-02-07 14:27:14 +00:00
1 parent 8d237cc2ee
commit 7672b9ffc8
1 file changed
+8
+8
View File
@@ -12,4 +12,12 @@ task :static do
system('script/check_static')
end
namespace :spec do
desc "Run only unit tests"
task :unit do
suites = %w(controllers helpers lib mailers models requests routing views)
system('rspec', *suites.collect { |s| "spec/#{s}" })
end
end
task default: [:static, :spec]