Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Run specs with Rails 2.3.5 and 3

  • Loading branch information...
commit 244cf9c9915967c8fc5b985586e33e9642d38044 1 parent eb94694
Brandon Keepers bkeepers authored
Showing with 9 additions and 1 deletion.
  1. +7 −1 Rakefile
  2. +2 −0  spec/spec_helper.rb
8 Rakefile
View
@@ -34,7 +34,13 @@ end
require 'spec/rake/spectask'
-task :default => :spec
+
+task :default do
+ %w(2.3.5 3.0.0.beta3).each do |version|
+ puts "Running specs with Rails #{version}"
+ system("RAILS_VERSION=#{version} rake -s spec;")
+ end
+end
desc 'Run the specs'
Spec::Rake::SpecTask.new(:spec) do |t|
2  spec/spec_helper.rb
View
@@ -4,6 +4,8 @@
require 'spec'
require 'logger'
+gem 'activerecord', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
+
require 'delayed_job'
require 'sample_jobs'
Please sign in to comment.
Something went wrong with that request. Please try again.