Wrong number of arguments (2 for 1)


#1

The following statement gave me “wrong number of arguments (2 for 1)”
and it
is the only error. no stack trace.
presenter.stub!(:account).and_return account

any idea? Thanks

Yi


#2

On Wed, Feb 25, 2009 at 4:50 PM, Yi Wen removed_email_address@domain.invalid wrote:

The following statement gave me “wrong number of arguments (2 for 1)” and it
is the only error. no stack trace.

try running with --backtrace


#3

On Wed, Feb 25, 2009 at 2:50 PM, Yi Wen removed_email_address@domain.invalid wrote:

Put parentheses around ‘account’.

///ark


#4

I haven’t looked into it too much. But I believe it is because I
implemented
method_missing and respond_to?, which probably conflicts with RSpec’s
imlementations. I have been wanting to re-implement my functionality in
another way other than method_missing for a long time. It seems now is
the
perfect time to do so. Thanks!

Yi


#5

Unfortunately, it doesn’t solve the problem. Thanks anyway

Yi