Test tags with &-encoded characters in trace emails
This commit is contained in:
parent
6f1ffc4a2b
commit
62af3d8745
1 changed files with 3 additions and 3 deletions
|
@ -10,12 +10,12 @@ class UserMailerTest < ActionMailer::TestCase
|
|||
def test_gpx_description_tags
|
||||
trace = create(:trace) do |t|
|
||||
create(:tracetag, :trace => t, :tag => "one")
|
||||
create(:tracetag, :trace => t, :tag => "two")
|
||||
create(:tracetag, :trace => t, :tag => "three")
|
||||
create(:tracetag, :trace => t, :tag => "two&three")
|
||||
create(:tracetag, :trace => t, :tag => "four<five")
|
||||
end
|
||||
email = UserMailer.gpx_success(trace, 100)
|
||||
|
||||
assert_match("<em>one</em>, <em>two</em>, <em>three</em>", email.html_part.body.to_s)
|
||||
assert_match("<em>one</em>, <em>two&three</em>, <em>four<five</em>", email.html_part.body.to_s)
|
||||
end
|
||||
|
||||
def test_gpx_success_all_traces_link
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue