1 # frozen_string_literal: true
6 class GpxImportSuccessViewTest < ActionView::TestCase
10 :name => "test-trace-file.gpx",
11 :description => "Test trace file"
13 notification = build_stubbed(
16 :notifier_class => GpxImportSuccessNotifier,
23 "notifications/notification",
24 :notification => notification
27 assert_dom ".web-notification" do
28 assert_dom "h2", "GPS trace imported successfully"
29 assert_dom "time", "less than 1 minute ago"
30 assert_dom "dd", "test-trace-file.gpx"
31 assert_dom "dd", "Test trace file"