Created
April 29, 2013 20:37
-
-
Save jeffremer/5484575 to your computer and use it in GitHub Desktop.
Useful Rspec output with bypass_rescue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe "index" do | |
| it "raises AccessDenied" do | |
| bypass_rescue | |
| expect { get :index }.to raise_error(AccessDenied) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment