aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/url_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionmailer/test/url_test.rb')
-rw-r--r--actionmailer/test/url_test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/actionmailer/test/url_test.rb b/actionmailer/test/url_test.rb
index ded343cfc5..2c393651fd 100644
--- a/actionmailer/test/url_test.rb
+++ b/actionmailer/test/url_test.rb
@@ -1,6 +1,9 @@
require "#{File.dirname(__FILE__)}/abstract_unit"
class TestMailer < ActionMailer::Base
+
+ default_url_options[:host] = 'www.basecamphq.com'
+
def signed_up_with_url(recipient)
@recipients = recipient
@subject = "[Signed up] Welcome #{recipient}"
@@ -47,12 +50,13 @@ class ActionMailerUrlTest < Test::Unit::TestCase
def test_signed_up_with_url
ActionController::Routing::Routes.draw do |map|
map.connect ':controller/:action/:id'
+ map.welcome 'welcome', :controller=>"foo", :action=>"bar"
end
expected = new_mail
expected.to = @recipient
expected.subject = "[Signed up] Welcome #{@recipient}"
- expected.body = "Hello there, \n\nMr. #{@recipient}. Please see our greeting at http://example.com/welcome/greeting"
+ expected.body = "Hello there, \n\nMr. #{@recipient}. Please see our greeting at http://example.com/welcome/greeting http://www.basecamphq.com/welcome"
expected.from = "system@loudthinking.com"
expected.date = Time.local(2004, 12, 12)