should validate_uniqueness does not work with mocha #2

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

1 participant

@trkoch

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