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