Skip to content

Instantly share code, notes, and snippets.

@jeffremer
Created April 29, 2013 20:37
Show Gist options
  • Select an option

  • Save jeffremer/5484575 to your computer and use it in GitHub Desktop.

Select an option

Save jeffremer/5484575 to your computer and use it in GitHub Desktop.
Useful Rspec output with bypass_rescue
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