Re: [rspec-users] removing Mocha; 'spec spec' fails but the specific model file passes

2009-06-17 Thread Doug
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

Re: [rspec-users] removing Mocha; 'spec spec' fails but the specific model file passes

2009-06-13 Thread David Chelimsky
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

[rspec-users] removing Mocha; 'spec spec' fails but the specific model file passes

2009-06-13 Thread Doug
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.