<% trace_name = tag.strong(@trace_name) %>
<% trace_description = tag.em(@trace_description) %>
<% if @trace_tags.length > 0 %>
- <% tags = @trace_tags.map { tag.tag.rstrip.join(" ") } %>
+ <% tags = @trace_tags.map(&:tag).join(" ") %>
<%= t ".description_with_tags_html", :trace_name => trace_name, :trace_description => trace_description, :tags => tags %>
<% else %>
<%= t ".description_with_no_tags_html", :trace_name => trace_name, :trace_description => trace_description %>
assert_match(/<html lang=/, email.html_part.body.to_s)
end
+
+ 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")
+ end
+ email = UserMailer.gpx_success(trace, 100)
+
+ assert_match(/one two three/, email.html_part.body.to_s)
+ end
end