From 7cd98d253eb08c1343b0cec585c470038a1fd6a8 Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Fri, 20 Jun 2025 04:33:00 +0200 Subject: [PATCH] Add basic test for LayersPanesController --- .../layers_panes_controller_test.rb | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/controllers/layers_panes_controller_test.rb diff --git a/test/controllers/layers_panes_controller_test.rb b/test/controllers/layers_panes_controller_test.rb new file mode 100644 index 000000000..21f6f74ce --- /dev/null +++ b/test/controllers/layers_panes_controller_test.rb @@ -0,0 +1,20 @@ +require "test_helper" + +class LayersPanesControllerTest < ActionDispatch::IntegrationTest + ## + # test all routes which lead to this controller + def test_routes + assert_routing( + { :path => "/panes/layers", :method => :get }, + { :controller => "layers_panes", :action => "show" } + ) + end + + def test_show + get layers_pane_path, :xhr => true + + assert_response :success + assert_template "layers_panes/show" + assert_template :layout => false + end +end -- 2.39.5