1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Test against Rails edge

This commit is contained in:
Zachary Scott 2013-08-07 14:51:50 -04:00
parent 0be8b7806b
commit c3890d4ca8
3 changed files with 14 additions and 2 deletions

View file

@ -10,6 +10,7 @@ rvm:
gemfile:
- gemfiles/active_record_32.gemfile
- gemfiles/active_record_40.gemfile
- gemfiles/active_record_edge.gemfile
- gemfiles/data_mapper_12.gemfile
- gemfiles/mongo_mapper.gemfile
- gemfiles/mongoid_30.gemfile

View file

@ -13,7 +13,7 @@ end
task :default => "spec:all"
namespace :spec do
%w(active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_30 mongoid_24 mongo_mapper sinatra).each do |gemfile|
%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).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_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_30 mongoid_24 mongo_mapper sinatra).each do |gemfile|
%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).each do |gemfile|
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
end

View file

@ -0,0 +1,11 @@
source 'https://rubygems.org'
git 'git://github.com/rails/rails.git' do
gem 'railties'
gem 'activerecord', :require => 'active_record'
end
gem 'rspec-rails', '>= 2.0'
gem 'database_cleaner', '>= 1.0.1'
gemspec :path => '../'