Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Rspec tests crashes on user model #86

Closed
szymon-przybyl opened this issue Feb 10, 2011 · 2 comments
Closed

Rspec tests crashes on user model #86

szymon-przybyl opened this issue Feb 10, 2011 · 2 comments

Comments

@szymon-przybyl
Copy link
Contributor

When I run tests separately, by "rake spec:models" and "rake spec:controllers" they go well, but by running "rake spec" they crashes on user model test.

@szymon-przybyl
Copy link
Contributor Author

I found a reason - User.stubs(:authenticate) for example in session controller test works even in user model test, so that test isn't working properly. I've switched config.mock_with to mocha and now it is ok :)

@szymon-przybyl
Copy link
Contributor Author

so maybe add some info, to switch to mocha when using nifty:authenticate? it take me quite a lot of time to find out that it was becouse of config.mock_with

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant