Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

show how to check the authorisation without a macro

  • Loading branch information...
commit ac8d4f9ae00738c4fa17c4314ba459572db2a347 1 parent 03d5329
@dnagir authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 README.md
View
5 README.md
@@ -245,6 +245,11 @@ describe PagesController do
should_authorize_for(:create, page)
post(:create)
end
+
+ it "checks the authorisation with plain RSpec if you don't like the macro" do
+ allowy.should_receive(:authorize!).with(:create, page)
+ post(:create)
+ end
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.