Skip to content

Commit

Permalink
test against mongoid ~> 3.1.0 with rails ~> 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Nov 5, 2013
1 parent 813a323 commit 6fff421
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ end
task :default => "spec:all"

namespace :spec do
%w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile|
%w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_31 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile|
desc "Run Tests against #{gemfile}"
task gemfile do
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
Expand All @@ -23,7 +23,7 @@ namespace :spec do

desc "Run Tests against all ORMs"
task :all do
%w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile|
%w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_31 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile|
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
end
Expand Down
12 changes: 12 additions & 0 deletions gemfiles/mongoid_31.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
source 'https://rubygems.org'

gem 'railties', '~> 4.0.0'
gem 'mongoid', '~> 3.1.0'
gem 'rspec-rails', '>= 2.0'
gem 'origin'
gem 'moped'
gem 'nokogiri'
gem 'xpath'
gem 'mime-types'

gemspec :path => '../'

0 comments on commit 6fff421

Please sign in to comment.