* David Chelimsky [2011-08-22]:
> This means that you need to explicitly stub the load method to do what
> you're trying to do:
>
> let(:bar) { mock(Bar, :load => nil).as_null_object }
Thanks for the explanation, David. I wasn't sure whether or not this was
accepted behaviour, I would have expec
On Aug 22, 2011, at 5:11 AM, Nikolay Sturm wrote:
> Hi,
>
> I have a strange problem with mocking an object that has a method called
> 'load'. With Rails 2.3 and rspec-rails 1.3 I could do sth like this:
>
> describe Foo do
> let(:bar) { mock(Bar).as_null_object }
> before(:each) do
>Bar.s