[rspec-users] wrong number of arguments (2 for 1)
Mark Wilden
mark at mwilden.com
Wed Feb 25 18:18:25 EST 2009
On Wed, Feb 25, 2009 at 2:50 PM, Yi Wen <hayafirst at gmail.com> wrote:
> 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
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
Put parentheses around 'account'.
///ark
More information about the rspec-users
mailing list