require 'ginger'
 
def create_scenario(version)
  scenario = Ginger::Scenario.new("Rails #{version}")
  scenario[/^active_?record$/] = version
  scenario[/^active_?support$/] = version
  scenario
end

Ginger.configure do |config|
  config.aliases["active_record"] = "activerecord"
  config.aliases["active_support"] = "activesupport"

  versions = []

  # Rails 3 only works on Ruby 1.8.7
  versions << '3.0.0.beta4' if RUBY_VERSION == '1.8.7'
  versions += %w( 2.3.8 2.3.5 2.3.4 2.3.3 2.3.2 )
  versions += %w(
    2.2.3 2.2.2
    2.1.2 2.1.1 2.1.0
    2.0.5 2.0.4 2.0.2 2.0.1 2.0.0
  ) if RUBY_VERSION =~ /^1\.8/
  versions.each do |version|
    config.scenarios << create_scenario(version)
  end
end
require 'ginger'
 
def create_scenario(version)
  scenario = Ginger::Scenario.new("Rails #{version}")
  scenario[/^active_?record$/] = version
  scenario[/^active_?support$/] = version
  scenario
end

Ginger.configure do |config|
  config.aliases["active_record"] = "activerecord"
  config.aliases["active_support"] = "activesupport"

  versions = []

  # Rails 3 only works on Ruby 1.8.7 and 1.9.2
  versions << '3.0.0.rc2' if %w[1.8.7 1.9.2].include?(RUBY_VERSION)
  versions += %w( 2.3.8 2.3.5 2.3.4 2.3.3 2.3.2 )
  versions += %w(
    2.2.3 2.2.2
    2.1.2 2.1.1 2.1.0
    2.0.5 2.0.4 2.0.2 2.0.1 2.0.0
  ) if RUBY_VERSION =~ /^1\.8/
  versions.each do |version|
    config.scenarios << create_scenario(version)
  end
end

Test activerecord rc2 instead of beta4.
Test activerecord rc2 instead of beta4.