From 79eedb346e103c5ff8e488b992c80b625c864097 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 24 Nov 2014 22:02:49 -0800 Subject: [PATCH] let the AM test suite pass in 1.9 --- actionmailer/test/url_test.rb | 4 ++-- 1 file 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