From 01241a168965637716f94d06c7502a3800f8162f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 27 Jan 2011 10:20:29 +0000 Subject: [PATCH] minor changes to spec rake tasks --- Rakefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 9eaaf97..df548be 100644 --- a/Rakefile +++ b/Rakefile @@ -9,9 +9,14 @@ Bundler::GemHelper.install_tasks # require 'rspec/core/rake_task' -desc "Run all specs" -task :spec => ["spec:unit", "spec:integration"] +RSpec::Core::RakeTask.new('spec:all') do |spec| + spec.pattern = [ 'spec/unit/**/*_spec.rb', + 'spec/integration/**/*_spec.rb' ] +end + +desc "Run unit specs" +task :spec => ["spec:unit"] RSpec::Core::RakeTask.new('spec:unit') do |spec| spec.pattern = 'spec/unit/**/*_spec.rb' end