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