-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Validator custom error message causes test matcher error #203
Comments
I can add more context. We have a test which looks like this: test 'should validate attachment format' do
project = create(:project)
project.image.attach(io: file_fixture("hello.csv"), filename: "hello.csv")
project.validate
assert project.errors.of_kind? :image, :content_type_invalid
end The assertion fails now. When inspecting the
Prior to v1.1, it looked like:
Think the key difference is that |
Thanks a lot @andyundso! I am currently refactoring the matcher tests of the gem so we do not get these regressions. |
Hi @Mth0158 I updated to v1.1.3 today and still see the behaviour as I reported in #203 (comment). Is this the expected behaviour now? |
Hi @andyundso |
Hi @andyundso, |
From @Alagaesia93 in #201
Hi there!
I got into the same issue today and 1.1.1 does not fix it if you have a custom message.
In your example
The spec fails
My example is with less_than, but I think it's the same
Originally posted by @Alagaesia93 in #201 (comment)
The text was updated successfully, but these errors were encountered: