[rspec-users] Not sure why this is failing

s.ross cwdinfo at gmail.com
Sat Nov 17 23:50:06 EST 2007


Try with(nil)

I think params[:user] will return nil.


On Nov 17, 2007, at 8:18 PM, __iso __ wrote:

>>> Address.should_receive(:new).with(no_args).and_return @address
>
> That doesn't seem to work either.  I had also tried with :any and that
> failed as well.
>
> It does seem to work when removing the .with() call though.
>
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list