Skip to content

Commit

Permalink
Update breaking test
Browse files Browse the repository at this point in the history
  • Loading branch information
colby-swandale committed Nov 14, 2024
1 parent b17a9e8 commit b3c7f03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ class Admin::OrganizationOnboardingInvitePolicyTest < AdminPolicyTestCase
end

def test_scope
assert_equal [@onboarding], policy_scope!(@admin, OrganizationOnboarding).to_a
assert_equal [@onboarding], policy_scope!(@admin, OrganizationOnboardingInvite).to_a
end

def test_avo_index
refute_authorizes @admin, OrganizationOnboardingInvite, :avo_index?
assert_authorizes @admin, OrganizationOnboardingInvite, :avo_index?
refute_authorizes @non_admin, OrganizationOnboardingInvite, :avo_index?
end

Expand All @@ -22,8 +22,8 @@ def test_avo_show
end

def test_avo_create
refute_authorizes @admin, OrganizationOnboarding, :avo_create?
refute_authorizes @non_admin, OrganizationOnboarding, :avo_create?
refute_authorizes @admin, OrganizationOnboardingInvite, :avo_create?
refute_authorizes @non_admin, OrganizationOnboardingInvite, :avo_create?
end

def test_avo_update
Expand Down
2 changes: 1 addition & 1 deletion test/policies/admin/organization_onboarding_policy_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_scope
end

def test_avo_index
refute_authorizes @admin, OrganizationOnboarding, :avo_index?
assert_authorizes @admin, OrganizationOnboarding, :avo_index?
refute_authorizes @non_admin, OrganizationOnboarding, :avo_index?
end

Expand Down

0 comments on commit b3c7f03

Please sign in to comment.