@@ -77,11 +77,19 class MailerTest < ActiveSupport::TestCase | |||||
77 |
|
77 | |||
78 | assert_select_email do |
|
78 | assert_select_email do | |
79 | # link to the main ticket |
|
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 | # link to a referenced ticket |
|
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 | # link to a changeset |
|
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 | end |
|
93 | end | |
86 | ensure |
|
94 | ensure | |
87 | # restore it |
|
95 | # restore it |
General Comments 0
You need to be logged in to leave comments.
Login now