Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

should validate_uniqueness does not work with mocha #2

Open
trkoch opened this Issue · 0 comments

1 participant

Tristan Koch
Tristan Koch

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
Something went wrong with that request. Please try again.