Permalink
Browse files

Add target to test rails 3.2 stable

  • Loading branch information...
1 parent 253a7f8 commit 326b4b66507d8a8329b3eeb74d151ff66393111d @alup alup committed Jun 26, 2013
Showing with 24 additions and 3 deletions.
  1. +9 −3 Rakefile
  2. +15 −0 gemfiles/rails3.gemfile
View
@@ -38,6 +38,12 @@ namespace :spec do
sh "BUNDLE_GEMFILE='gemfiles/rails4.gemfile' bundle exec rake -t spec"
end
+ desc "Run Tests against rails 3"
+ task :rails3 do
+ sh "BUNDLE_GEMFILE='gemfiles/rails3.gemfile' bundle --quiet"
+ sh "BUNDLE_GEMFILE='gemfiles/rails3.gemfile' bundle exec rake -t spec"
+ end
+
desc "Run Tests against activerecord"
task :activerecord do
sh "bundle --quiet"
@@ -58,9 +64,9 @@ namespace :spec do
sh "BUNDLE_GEMFILE='gemfiles/rails4.gemfile' bundle --quiet"
sh "BUNDLE_GEMFILE='gemfiles/rails4.gemfile' bundle exec rake -t spec"
- # ActiveRecord
- sh "bundle --quiet"
- sh "bundle exec rake -t spec"
+ # rails 3
+ sh "BUNDLE_GEMFILE='gemfiles/rails3.gemfile' bundle --quiet"
+ sh "BUNDLE_GEMFILE='gemfiles/rails3.gemfile' bundle exec rake -t spec"
end
end
View
@@ -0,0 +1,15 @@
+source 'https://rubygems.org'
+
+gem 'rails', '3.2.12'
+
+platforms :jruby do
+ gem "activerecord-jdbc-adapter"
+ gem "activerecord-jdbcsqlite3-adapter"
+ gem "jruby-openssl"
+end
+
+platforms :ruby do
+ gem "sqlite3"
+end
+
+gemspec :path => '../'

0 comments on commit 326b4b6

Please sign in to comment.