-
-
Notifications
You must be signed in to change notification settings - Fork 909
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
Support :uuid column type for validate_absence_of matcher #1518
Conversation
Hi, @dlupu, thank you very much for your contribution! There is only one detail: rubocop detected trailing whitespace. Would be possible to fix that, please? About the error with 3.1.2, rails_6_0 and PostgreSQL I'll take a closer look as soon as I have some time. |
I did not notice the error on Test / build (3.1.2, rails_6_0, postgresql)
Remove trailing whitespace
@vsppedro sorry for the late reply. I fixed the rubocop issue. However, I'm surprised about the error that appears only on
The tests passes .... |
spec/unit/shoulda/matchers/active_model/validate_absence_of_matcher_spec.rb
Outdated
Show resolved
Hide resolved
@vsppedro it seems that |
Hi @dlupu, thanks for working on this. The failure we had earlier looks like an intermittent test. It was probably not caused by your changes. I'll keep an eye on that. Thank you again! |
Hello,
I run into a case where I needed to make sure that an
uuid
column was empty but could not usevalidate_absence_of
matcher.It tried to set the column with "an arbitrary value" which is not a valid uuid value.
This Pull Requests attempts to fix the situation.