Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should validate_uniqueness does not work with mocha #2

Open
trkoch opened this issue Feb 20, 2010 · 0 comments
Open

should validate_uniqueness does not work with mocha #2

trkoch opened this issue Feb 20, 2010 · 0 comments

Comments

@trkoch
Copy link

trkoch commented Feb 20, 2010

When using mocha instead of rspecs mocking framework, valid_uniqueness does not work and throws "stub! unknown method". Changing to model.class.expects(:find).returns(true) in validations.rb didn't do the trick either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant