From c3890d4ca8855930b56325adea9100861f34f603 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Wed, 7 Aug 2013 14:51:50 -0400 Subject: [PATCH] Test against Rails edge --- .travis.yml | 1 + Rakefile | 4 ++-- gemfiles/active_record_edge.gemfile | 11 +++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 gemfiles/active_record_edge.gemfile diff --git a/.travis.yml b/.travis.yml index 085abe0..1114efd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Rakefile b/Rakefile index a7302b1..fa04024 100644 --- a/Rakefile +++ b/Rakefile @@ -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 diff --git a/gemfiles/active_record_edge.gemfile b/gemfiles/active_record_edge.gemfile new file mode 100644 index 0000000..7957ead --- /dev/null +++ b/gemfiles/active_record_edge.gemfile @@ -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 => '../'