Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (30 sloc) 0.947 kb
205ebd9 @myronmarston Setup ginger so we can test this against different version of actionmail...
authored
1 require 'ginger'
2
3 def create_scenario(version)
4 scenario = Ginger::Scenario.new("Rails #{version}")
5 scenario[/^action_?mailer$/] = version
6 scenario[/^action_?pack$/] = version
7 scenario[/^active_?support$/] = version
8 scenario
9 end
10
11 Ginger.configure do |config|
12 config.aliases["action_mailer"] = "actionmailer"
13 config.aliases["action_pack"] = "actionpack"
14 config.aliases["active_support"] = "activesupport"
15
99edc32 @myronmarston Test against actionmailer 2.3.8.
authored
16 %w( 2.3.8 2.3.5 2.3.4 2.3.3 2.3.2 ).each do |version|
205ebd9 @myronmarston Setup ginger so we can test this against different version of actionmail...
authored
17 config.scenarios << create_scenario(version)
18 end
19
df32897 @myronmarston Rails didn't work with ruby 1.9 until 2.3, so there's no point in testin...
authored
20 if RUBY_VERSION =~ /^1\.8/
21 %w(
22 2.2.3 2.2.2
23 2.1.2 2.1.1 2.1.0
24 2.0.5 2.0.4 2.0.2 2.0.1 2.0.0
25 ).each do |version|
26 config.scenarios << create_scenario(version)
27 end
28
29 rails126 = Ginger::Scenario.new("Rails 1.2.6")
30 rails126[/^action_?mailer$/] = '1.3.6'
31 rails126[/^action_?pack$/] = '1.13.6'
32 rails126[/^active_?support$/] = '1.4.4'
33 config.scenarios << rails126
34 end
205ebd9 @myronmarston Setup ginger so we can test this against different version of actionmail...
authored
35 end
Something went wrong with that request. Please try again.