Fix trace tag interpolation, and add a test
This commit is contained in:
parent
f635b98b8c
commit
b83c0acbd1
2 changed files with 12 additions and 1 deletions
|
@ -6,4 +6,15 @@ class UserMailerTest < ActionMailer::TestCase
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue