-
Notifications
You must be signed in to change notification settings - Fork 1
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
Does not give error of which field has errors #3
Comments
Can you have a look @melashu ? |
Hi @espen, I'm still not sure what you're asking me. Could you please give me more details? |
When the Liquid input is as above it will not give proper error message. It gives error "booking form must not have more than 1". but it should include the error field: "booking form must not have more than 1 street". It might be related to using an array of values so the error does not know which field caused the error. I am using this: |
Hi @espen, this happens because |
we didn't consider this in the previous senario |
I thought that was already working. Is it just a problem when using an array, not a string? I thought there were tests for this pattern |
Yes this is when there is an array, for string it works fine and there is a test for that too |
look this it "must be valid when using more complex tag" do
@mixin.content = "{% josh_is_awesome foobar, data-required='true' %}"
@mixin.valid?
@mixin.errors.full_messages.any? { |e| e == "You must supply {% josh_is_awesome %} in your content" }.must_equal false
end
|
Ok, can you make a failing test for using with array? Then see if you can fix it. |
Sure, I will check it |
results in 'booking form must not have more than 1 '. Should include the field name 'street'
The text was updated successfully, but these errors were encountered: