expect the shallow path for the topics as written in the routes file

pull/1186/head
Martin Linkhorst 12 years ago
parent f57184ecda
commit 01d60ebaa6
  1. 4
      test/functional/user_mailer_test.rb

@ -277,7 +277,7 @@ class UserMailerTest < ActionMailer::TestCase
assert_nil mail.references
assert_select_email do
# link to the message
assert_select "a[href*=?]", "#{Setting.protocol}://#{Setting.host_name}/boards/#{message.board.id}/topics/#{message.id}", :text => message.subject
assert_select "a[href*=?]", "#{Setting.protocol}://#{Setting.host_name}/topics/#{message.id}", :text => message.subject
end
end
@ -292,7 +292,7 @@ class UserMailerTest < ActionMailer::TestCase
assert_match mail.references, UserMailer.generate_message_id(parent)
assert_select_email do
# link to the reply
assert_select "a[href=?]", "#{Setting.protocol}://#{Setting.host_name}/boards/#{message.board.id}/topics/#{message.root.id}?r=#{message.id}#message-#{message.id}", :text => message.subject
assert_select "a[href=?]", "#{Setting.protocol}://#{Setting.host_name}/topics/#{message.root.id}?r=#{message.id}#message-#{message.id}", :text => message.subject
end
end

Loading…
Cancel
Save