Rakefile in by_star-2.1.0.beta2 vs Rakefile in by_star-2.2.0.rc1
- old
+ new
@@ -1,2 +1,18 @@
-require 'bundler'
-Bundler::GemHelper.install_tasks
+require 'bundler'
+require 'rspec/core/rake_task'
+
+Bundler::GemHelper.install_tasks
+RSpec::Core::RakeTask.new(:spec)
+
+def orm_test(orm)
+ RSpec::Core::RakeTask.new(orm) do |task|
+ task.pattern = "./spec/{unit,integration/#{orm}}/{,/*/**}/*_spec.rb"
+ end
+end
+
+namespace :spec do
+ orm_test 'active_record'
+ orm_test 'mongoid'
+end
+
+task default: :spec