@@ -110,11 +110,19 class MailerTest < ActiveSupport::TestCase | |||||
110 |
|
110 | |||
111 | assert_select_email do |
|
111 | assert_select_email do | |
112 | # link to the main ticket |
|
112 | # link to the main ticket | |
113 | assert_select "a[href=?]", "http://mydomain.foo/rdm/issues/1", :text => "Bug #1: Can't print recipes" |
|
113 | assert_select "a[href=?]", | |
|
114 | "http://mydomain.foo/rdm/issues/1", | |||
|
115 | :text => "Bug #1: Can't print recipes" | |||
114 | # link to a referenced ticket |
|
116 | # link to a referenced ticket | |
115 | assert_select "a[href=?][title=?]", "http://mydomain.foo/rdm/issues/2", "Add ingredients categories (Assigned)", :text => "#2" |
|
117 | assert_select "a[href=?][title=?]", | |
|
118 | "http://mydomain.foo/rdm/issues/2", | |||
|
119 | "Add ingredients categories (Assigned)", | |||
|
120 | :text => "#2" | |||
116 | # link to a changeset |
|
121 | # link to a changeset | |
117 | 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" |
|
122 | assert_select "a[href=?][title=?]", | |
|
123 | "http://mydomain.foo/rdm/projects/ecookbook/repository/revisions/2", | |||
|
124 | "This commit fixes #1, #2 and references #1 & #3", | |||
|
125 | :text => "r2" | |||
118 | end |
|
126 | end | |
119 | ensure |
|
127 | ensure | |
120 | # restore it |
|
128 | # restore it |
General Comments 0
You need to be logged in to leave comments.
Login now