]> git.openstreetmap.org Git - rails.git/blob - test/controllers/directions_controller_test.rb
Merge pull request #6394 from openstreetmap/dependabot/github_actions/ruby/setup...
[rails.git] / test / controllers / directions_controller_test.rb
1 # frozen_string_literal: true
2
3 require "test_helper"
4
5 class DirectionsControllerTest < ActionDispatch::IntegrationTest
6   ##
7   # test all routes which lead to this controller
8   def test_routes
9     assert_routing(
10       { :path => "/directions", :method => :get },
11       { :controller => "directions", :action => "show" }
12     )
13   end
14
15   def test_show
16     get directions_path
17     assert_response :success
18   end
19
20   def test_sprite
21     get directions_path
22     assert_dom "svg>symbol[id*='-right']"
23     assert_dom "svg>symbol[id*='-left']"
24     assert_dom "svg>symbol[id*='-straight']"
25   end
26 end