1 # frozen_string_literal: true
6 class GpxImportFailureViewTest < ActionView::TestCase
8 notification = build_stubbed(
10 :notifier_class => GpxImportFailureNotifier,
12 :trace_name => "random-file.jpg",
13 :trace_description => "Random file",
14 :trace_tags => %w[random file],
15 :error => "Ooops, wrong file"
20 "notifications/notification",
21 :notification => notification
24 assert_dom ".web-notification" do
25 assert_dom "h2", "GPS trace could not be imported"
26 assert_dom "time", "less than 1 minute ago"
27 assert_dom "dd", "random-file.jpg"
28 assert_dom "dd", "Random file"
29 assert_dom "dd", "random, file"
30 assert_dom "pre", "Ooops, wrong file"