[rspec-devel] [ rspec-Bugs-8371 ] Mocking complaining about wrong number of arguments (odd)

noreply at rubyforge.org noreply at rubyforge.org
Thu Feb 1 15:27:32 EST 2007


Bugs item #8371, was opened at 2007-02-01 18:27
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=8371&group_id=797

Category: mock module
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Rodrigo Kochenburger (divoxx)
Assigned to: Nobody (None)
Summary: Mocking complaining about wrong number of arguments (odd)

Initial Comment:
In this code http://pastie.caboo.se/37274 i'm trying to mock a model method while testing a controller. (Line 12)

The error being raised is also pasted in there. If i comment that line out and actually call the create method, the model raises the exception and everything works just fine...

I've already tried using .with(:any_args)

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=8371&group_id=797


More information about the rspec-devel mailing list