assertmail.body.include?('<a href="https://mydomain.foo/projects/ecookbook/repository/revisions/2" class="changeset" title="This commit fixes #1, #2 and references #1 & #3">r2</a>')
assert_select"a[href=?][title=?]","https://mydomain.foo/projects/ecookbook/repository/revisions/2","This commit fixes #1, #2 and references #1 & #3",:text=>"r2"
end
end
end
deftest_generated_links_with_prefix
deftest_generated_links_with_prefix
@ -52,13 +55,15 @@ class MailerTest < ActiveSupport::TestCase
assertmail.body.include?('<a href="http://mydomain.foo/rdm/projects/ecookbook/repository/revisions/2" class="changeset" title="This commit fixes #1, #2 and references #1 & #3">r2</a>')
assert_select"a[href=?][title=?]","http://mydomain.foo/rdm/projects/ecookbook/repository/revisions/2","This commit fixes #1, #2 and references #1 & #3",:text=>"r2"
assertmail.body.include?('<a href="http://mydomain.foo/rdm/projects/ecookbook/repository/revisions/2" class="changeset" title="This commit fixes #1, #2 and references #1 & #3">r2</a>')
assert_select"a[href=?][title=?]","http://mydomain.foo/rdm/projects/ecookbook/repository/revisions/2","This commit fixes #1, #2 and references #1 & #3",:text=>"r2"