@@ -47,11 +47,19 class MailerTest < ActiveSupport::TestCase | |||
|
47 | 47 | |
|
48 | 48 | assert_select_email do |
|
49 | 49 | # link to the main ticket |
|
50 | assert_select "a[href=?]", "https://mydomain.foo/issues/1", :text => "Bug #1: Can't print recipes" | |
|
50 | assert_select "a[href=?]", | |
|
51 | "https://mydomain.foo/issues/1", | |
|
52 | :text => "Bug #1: Can't print recipes" | |
|
51 | 53 | # link to a referenced ticket |
|
52 | assert_select "a[href=?][title=?]", "https://mydomain.foo/issues/2", "Add ingredients categories (Assigned)", :text => "#2" | |
|
54 | assert_select "a[href=?][title=?]", | |
|
55 | "https://mydomain.foo/issues/2", | |
|
56 | "Add ingredients categories (Assigned)", | |
|
57 | :text => "#2" | |
|
53 | 58 | # link to a changeset |
|
54 | assert_select "a[href=?][title=?]", "https://mydomain.foo/projects/ecookbook/repository/revisions/2", "This commit fixes #1, #2 and references #1 & #3", :text => "r2" | |
|
59 | assert_select "a[href=?][title=?]", | |
|
60 | "https://mydomain.foo/projects/ecookbook/repository/revisions/2", | |
|
61 | "This commit fixes #1, #2 and references #1 & #3", | |
|
62 | :text => "r2" | |
|
55 | 63 | end |
|
56 | 64 | end |
|
57 | 65 |
General Comments 0
You need to be logged in to leave comments.
Login now