Permalink
Browse files

All tests were unit tests from start

  • Loading branch information...
1 parent cb95015 commit 350298f832f47159eecc3969aa24d5c23d5ec1d9 @walle committed Nov 9, 2011
View
@@ -5,10 +5,23 @@ Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new do |t|
+desc "Run unit specs"
+RSpec::Core::RakeTask.new(:unit) do |t|
t.rspec_opts = %w(-fd -c)
+ t.pattern = "./spec/unit/**/*_spec.rb"
end
-task :default => :spec
-task :test => :spec
+desc "Run integration specs"
+RSpec::Core::RakeTask.new(:integration) do |t|
+ t.rspec_opts = %w(-fd -c)
+ t.pattern = "./spec/integration/**/*_spec.rb"
+end
+
+desc "Run all specs"
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rspec_opts = %w(-fd -c)
+end
+
+task :default => :unit
+task :test => :unit
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 350298f

Please sign in to comment.