Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Spone authored and palkan committed Sep 13, 2024
1 parent 33623f6 commit d3587fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/action_policy/rails/controllers_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d3587fe

Please sign in to comment.