diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 2c1c3297a..d48bb9861 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -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]