]> git.openstreetmap.org Git - rails.git/blob - test/controllers/legend_panes_controller_test.rb
Merge remote-tracking branch 'upstream/pull/6115'
[rails.git] / test / controllers / legend_panes_controller_test.rb
1 require "test_helper"
2
3 class LegendPanesControllerTest < ActionDispatch::IntegrationTest
4   ##
5   # test all routes which lead to this controller
6   def test_routes
7     assert_routing(
8       { :path => "/panes/legend", :method => :get },
9       { :controller => "legend_panes", :action => "show" }
10     )
11   end
12
13   def test_show
14     get legend_pane_path, :xhr => true
15
16     assert_response :success
17     assert_template "legend_panes/show"
18     assert_template :layout => false
19   end
20 end