Browse files

support Mongoid 3.0

  • Loading branch information...
1 parent 3996dfb commit 90c3f6eda6aeef3d589dbc70d722dc1c36b53f9c @amatsuda committed Sep 3, 2012
Showing with 9 additions and 2 deletions.
  1. +2 −2 Rakefile
  2. +7 −0 gemfiles/mongoid_30.gemfile
View
4 Rakefile
@@ -13,7 +13,7 @@ end
task :default => "spec:all"
namespace :spec do
- %w(active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_24 mongo_mapper sinatra).each do |gemfile|
+ %w(active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_30 mongoid_24 mongo_mapper sinatra).each do |gemfile|
desc "Run Tests against #{gemfile}"
task gemfile do
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
@@ -23,7 +23,7 @@ namespace :spec do
desc "Run Tests against all ORMs"
task :all do
- %w(active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_24 mongo_mapper sinatra).each do |gemfile|
+ %w(active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_30 mongoid_24 mongo_mapper sinatra).each do |gemfile|
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
end
View
7 gemfiles/mongoid_30.gemfile
@@ -0,0 +1,7 @@
+source :rubygems
+
+gem 'railties', '>= 3.2.3'
+gem 'mongoid', '>= 3.0'
+gem 'rspec-rails', '>= 2.0'
+
+gemspec :path => '../'

0 comments on commit 90c3f6e

Please sign in to comment.