ok, I investigated further...and I'm still confused.
this is testing a typical authenticate class method..
# login can be either username or email address
def self.authenticate(login, pass)
user = find_by_username(login) || find_by_email(login)
return user if user && user.matching
On Sat, Jun 13, 2009 at 4:30 PM, Doug wrote:
> I happened to mix ryan bates' authentication scaffold with
> rspec_scaffold on a demo project.
> and ran into the problem of mixing mock frameworks...ryan uses mocha.
>
> So, as a learning experience, I choose to redo ryan's tests without
> mocha but
I happened to mix ryan bates' authentication scaffold with
rspec_scaffold on a demo project.
and ran into the problem of mixing mock frameworks...ryan uses mocha.
So, as a learning experience, I choose to redo ryan's tests without
mocha but ran into a strange problem with tests of the User model.