@@ -110,11 +110,19 class MailerTest < ActiveSupport::TestCase | |||
|
110 | 110 | |
|
111 | 111 | assert_select_email do |
|
112 | 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 | 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 | 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 | 126 | end |
|
119 | 127 | ensure |
|
120 | 128 | # restore it |
General Comments 0
You need to be logged in to leave comments.
Login now