Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

[1606] Write Tests for Ability#1626

Open
esoterik wants to merge 3 commits intomasterfrom
1606_ability_tests
Open

[1606] Write Tests for Ability#1626
esoterik wants to merge 3 commits intomasterfrom
1606_ability_tests

Conversation

@esoterik
Copy link
Copy Markdown
Collaborator

Resolves #1606

it { is_expected.not_to be_able_to(:view_as, :superuser) }
it { is_expected.not_to be_able_to(:appoint, :superuser) }
it { is_expected.not_to be_able_to(:destroy, User, role: 'superuser') }
it { is_expected.not_to be_able_to(:update, User, role: 'superuser') }
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two fail; I haven't been able to determine why

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll dig into cancancan and try to figure this out

@esoterik
Copy link
Copy Markdown
Collaborator Author

Note that this PR should also remove all of the controller tests that it obsoletes

@esoterik esoterik added pri: 5 and removed pri: 3 labels Sep 12, 2016
@orenyk
Copy link
Copy Markdown
Contributor

orenyk commented Sep 18, 2016

I'll review the spec to make sure all abilities were covered, and following the resolution of these two tests failing you should deal with all the controller updates and I'll review again once those are done.

@orenyk orenyk self-assigned this Sep 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants