diff options
author | Xavier Noria <fxn@hashref.com> | 2014-11-24 22:02:49 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2014-11-24 22:03:54 -0800 |
commit | 79eedb346e103c5ff8e488b992c80b625c864097 (patch) | |
tree | 612d3bd0a77e6de3c67b219dafcf4237f06f1131 /actionmailer | |
parent | 009f6f1924400bc6015a8fa1c988a14cc77415b6 (diff) | |
download | rails-79eedb346e103c5ff8e488b992c80b625c864097.tar.gz rails-79eedb346e103c5ff8e488b992c80b625c864097.tar.bz2 rails-79eedb346e103c5ff8e488b992c80b625c864097.zip |
let the AM test suite pass in 1.9
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/test/url_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/test/url_test.rb b/actionmailer/test/url_test.rb index 8fce7c3827..7928fe9542 100644 --- a/actionmailer/test/url_test.rb +++ b/actionmailer/test/url_test.rb @@ -63,7 +63,7 @@ class ActionMailerUrlTest < ActionMailer::TestCase mail end - def assert_url_for(expected, options, relative: false) + def assert_url_for(expected, options, relative = false) expected = "http://www.basecamphq.com#{expected}" if expected.start_with?('/') && !relative urls = UrlTestMailer.exercise_url_for(options).body.to_s.chomp.split @@ -92,7 +92,7 @@ class ActionMailerUrlTest < ActionMailer::TestCase # hash assert_url_for '/a/b/c', controller: 'a', action: 'b', id: 'c' - assert_url_for '/a/b/c', {controller: 'a', action: 'b', id: 'c', only_path: true}, relative: true + assert_url_for '/a/b/c', {controller: 'a', action: 'b', id: 'c', only_path: true}, true # model assert_url_for '/dummy_model', DummyModel.new |