Software Development
Pages
Home
About
Contact
Saturday, October 31, 2015
rr mocking framework
How to mock something and raise exception? In your model if you need to test something that's raises ActiveRecordNotFound, you can do :
stub
(
some_object
)
.
walk
{
raise
}
Newer Post
Older Post
Home