[rspec-users] stubbing out after_create AR method?

Fearless Fool lists at ruby-forum.com
Mon Feb 14 19:59:09 EST 2011

Mike Mazur wrote in post #981665:
> Perhaps one way to approach this is to have WebMock return an
> appropriate success message in response to the network call that
> :etl_attributes makes.
> Mike

Ah - good point.  With all the options for stubbing and mocking, I'd 
forgotten that one.  Factory Girl is creating premise objects that will 
generate different URLs, but I can use the regex option for WebMock to 
catch them.

Thanks for getting me unstuck!

- ff

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list