From d3587fefa2a7ff11f165b8f26e880dd504d890ab Mon Sep 17 00:00:00 2001 From: Hans Lemuet Date: Fri, 13 Sep 2024 02:04:08 +0200 Subject: [PATCH] Fix tests --- test/action_policy/rails/controllers_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/action_policy/rails/controllers_test.rb b/test/action_policy/rails/controllers_test.rb index 2c09ceb..402641c 100644 --- a/test/action_policy/rails/controllers_test.rb +++ b/test/action_policy/rails/controllers_test.rb @@ -196,7 +196,7 @@ def test_index_unauthorized assert_equal Admin::UserPolicy, e.policy assert_equal :index?, e.rule - assert_equal "Not authorized: Admin::UserPolicy#index? returns false", e.message + assert_equal "Not authorized: TestNamespacedControllerIntegration::Admin::UserPolicy#index? returns false", e.message end def test_index_authorized @@ -211,7 +211,7 @@ def test_show_unauthorized assert_equal Admin::UserPolicy, e.policy assert_equal :show?, e.rule - assert_equal "Not authorized: Admin::UserPolicy#show? returns false", e.message + assert_equal "Not authorized: TestNamespacedControllerIntegration::Admin::UserPolicy#show? returns false", e.message end def test_show_authorized @@ -266,7 +266,7 @@ def test_index_unauthorized assert_equal UserPolicy, e.policy assert_equal :index?, e.rule - assert_equal "Not authorized: UserPolicy#index? returns false", e.message + assert_equal "Not authorized: TestOverrideControllerIntegration::UserPolicy#index? returns false", e.message end def test_index_authorized