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