Displaying 1 result from an estimated 1 matches for "whatever_you_lik".
Did you mean:
whatever_you_like
2006 Dec 12
3
Stubs breaking other things
Hi All
I''m working on converting some existing controller specs to use mocks
and stubs rather than real ActiveRecord objects in a Rails project.
In one of my controller actions, I use a database transaction. So,
the obvious thing to do is have this in my setup block:
Project.stub!(:transaction)
Firstly, is there an easy way to have that stub yield to the block
passed to any