mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-21 22:44:23 -04:00
Add spec:unit Rake task
This commit is contained in:
1 parent
8d237cc2ee
commit
7672b9ffc8
1 file changed
+8
@@ -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]
|
||||
Reference in new issue
Block a user