On Wed, Feb 25, 2009 at 2:50 PM, Yi Wen <hayafi...@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@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>

Put parentheses around 'account'.

///ark
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to