Memorandums, Logbook & Shares
Thursday, August 23, 2012
Use Mocha to stub a class method and raise an exception
$> gem install mocha
SomeClass.any_instance.stubs(some_method).raises(SomeException)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.