Permalink
Browse files

- Make "spec" the default rake task

- ORM tests should also run unit (ORM-independent) tests
  • Loading branch information...
1 parent c5e742e commit 15c2da2c0e509ec8900b57ab51690496cb18b518 @johnnyshields johnnyshields committed Jan 12, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 Rakefile
View
@@ -6,11 +6,13 @@ RSpec::Core::RakeTask.new(:spec)
def orm_test(orm)
RSpec::Core::RakeTask.new(orm) do |task|
- task.pattern = "./spec/by_star/#{orm}/{,/*/**}/*_spec.rb"
+ task.pattern = "./spec/{unit,integration/#{orm}}/{,/*/**}/*_spec.rb"
end
end
namespace :spec do
orm_test 'active_record'
orm_test 'mongoid'
end
+
+task default: :spec

0 comments on commit 15c2da2

Please sign in to comment.