Skip to content

Commit

Permalink
Run specs with Rails 2.3.5 and 3
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed May 2, 2010
1 parent eb94694 commit 244cf9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Rakefile
Expand Up @@ -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|
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -4,6 +4,8 @@
require 'spec'
require 'logger'

gem 'activerecord', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']

require 'delayed_job'
require 'sample_jobs'

Expand Down

0 comments on commit 244cf9c

Please sign in to comment.