mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
test against mongoid ~> 3.1.0 with rails ~> 4.0.0
This commit is contained in:
parent
813a323732
commit
6fff421710
2 changed files with 14 additions and 2 deletions
4
Rakefile
4
Rakefile
|
@ -13,7 +13,7 @@ end
|
||||||
task :default => "spec:all"
|
task :default => "spec:all"
|
||||||
|
|
||||||
namespace :spec do
|
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}"
|
desc "Run Tests against #{gemfile}"
|
||||||
task gemfile do
|
task gemfile do
|
||||||
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
|
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
|
||||||
|
@ -23,7 +23,7 @@ namespace :spec do
|
||||||
|
|
||||||
desc "Run Tests against all ORMs"
|
desc "Run Tests against all ORMs"
|
||||||
task :all do
|
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 --quiet"
|
||||||
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
|
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
|
||||||
end
|
end
|
||||||
|
|
12
gemfiles/mongoid_31.gemfile
Normal file
12
gemfiles/mongoid_31.gemfile
Normal file
|
@ -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 => '../'
|
Loading…
Reference in a new issue