Displaying 2 results from an estimated 2 matches for "authorizationerror".
2011 Aug 10
5
ControllerExampleGroup.bypass_rescue
As best I can tell, bypass_rescue from rspec-rails-1 is no longer part of rspec-rails, ''> 2''. I had been using it on occasion for things like:
describe CorrespondencesController do
...
describe ''#show'' do
it "should raise an AuthorizationError if current user is not the correspondent " do
bypass_rescue
...
expect { do_get }.to raise_error(AuthorizationError)
I know there are conflicting opinions on whether or not it''s a good idea to directly check for exceptions this way, but I''ve always felt that...
2006 Nov 21
10
Rspec Brown Bag
Hello,
I''m scheduled to give a rspec brown bag this Wednesday (11/22) for my
company (Pivotal Computer Systems, http://www.pivotalsf.com). I did see Dave
Astel''s talk as well as several of my coworkers.
The developers at my workplace are experienced Agile developers.
What would be some good things to focus on for this brown bag?
Are there slides to presentations that would be