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