@@ -77,11 +77,19 class MailerTest < ActiveSupport::TestCase | |||
|
77 | 77 | |
|
78 | 78 | assert_select_email do |
|
79 | 79 | # link to the main ticket |
|
80 | assert_select "a[href=?]", "http://mydomain.foo/rdm/issues/1", :text => "Bug #1: Can't print recipes" | |
|
80 | assert_select "a[href=?]", | |
|
81 | "http://mydomain.foo/rdm/issues/1", | |
|
82 | :text => "Bug #1: Can't print recipes" | |
|
81 | 83 | # link to a referenced ticket |
|
82 | assert_select "a[href=?][title=?]", "http://mydomain.foo/rdm/issues/2", "Add ingredients categories (Assigned)", :text => "#2" | |
|
84 | assert_select "a[href=?][title=?]", | |
|
85 | "http://mydomain.foo/rdm/issues/2", | |
|
86 | "Add ingredients categories (Assigned)", | |
|
87 | :text => "#2" | |
|
83 | 88 | # link to a changeset |
|
84 | 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" | |
|
89 | assert_select "a[href=?][title=?]", | |
|
90 | "http://mydomain.foo/rdm/projects/ecookbook/repository/revisions/2", | |
|
91 | "This commit fixes #1, #2 and references #1 & #3", | |
|
92 | :text => "r2" | |
|
85 | 93 | end |
|
86 | 94 | ensure |
|
87 | 95 | # restore it |
General Comments 0
You need to be logged in to leave comments.
Login now