code layout clean up of test_generated_links_with_prefix_and_no_relative_url_root at test/unit/mailer_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7500 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
000bdfbd6b
commit
662474b0e6
|
@ -110,11 +110,19 @@ class MailerTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
assert_select_email do
|
assert_select_email do
|
||||||
# link to the main ticket
|
# link to the main ticket
|
||||||
assert_select "a[href=?]", "http://mydomain.foo/rdm/issues/1", :text => "Bug #1: Can't print recipes"
|
assert_select "a[href=?]",
|
||||||
|
"http://mydomain.foo/rdm/issues/1",
|
||||||
|
:text => "Bug #1: Can't print recipes"
|
||||||
# link to a referenced ticket
|
# link to a referenced ticket
|
||||||
assert_select "a[href=?][title=?]", "http://mydomain.foo/rdm/issues/2", "Add ingredients categories (Assigned)", :text => "#2"
|
assert_select "a[href=?][title=?]",
|
||||||
|
"http://mydomain.foo/rdm/issues/2",
|
||||||
|
"Add ingredients categories (Assigned)",
|
||||||
|
:text => "#2"
|
||||||
# link to a changeset
|
# link to a changeset
|
||||||
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"
|
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"
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
# restore it
|
# restore it
|
||||||
|
|
Loading…
Reference in New Issue