-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -216,6 +216,11 @@ describe PagesController do | ||
it "will always allow no matter what" do | it "will always allow no matter what" do | ||
post(:create).should be_success | post(:create).should be_success | ||
end | end | ||
|
|||
it "checks the authorisation" do | |||
should_authorize_for(:create, page) | |||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dchelimsky
|
|||
post(:create) | |||
end | |||
end | end | ||
|
|
||
``` | ``` | ||
|
1 comment
on commit 6072180
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The related spec is at dc1b3c4
Ideally I'd like to write something like 'allowy.should authorize_for(:create, page)' but not sure how to write a proper matcher.