-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fails uniqueness validation with Shoulda Matchers #28
Comments
Context:my comment and subsequent comments and pip's comment Background:For some reason - Example App:https://github.com/thewatts/uniqueness ( models provided are To Reproduce:
run: Add run:
|
I'd be fine just removing that test, we can make a manual check in there that doesn't use the fancy matchers. Is that what you guys are thinking? |
@jdtornow and to be more specific - we're not adding anything like |
@jdtornow that's the ticket! I had pinpointed the issue in Thanks for making the quick fix! As a side note - if you know offhand what and why was causing the issue, I'd be super curious to know! |
Great, thanks for checking. I'll push up a patch version shortly. I suspect the |
@jdtornow thanks!!! |
Failing test case:
https://github.com/philtr/challah/blob/pr-shoulda/spec/models/user_spec.rb#L6-L8
@thewatts and I tested this, and even having Challah in the Gemfile causes the uniqueness matcher to fail.
The text was updated successfully, but these errors were encountered: