Open tagliala opened 2 months ago
rails/rails@fa476ce275
rails/rails#52467
Error:
ClientSideValidations::LegacyFormWithActionViewHelpersTest#test_form_with_text_area:
NoMethodError: undefined method `text_area' for an instance of ActionView::Helpers::FormBuilder
test/action_view/cases/test_legacy_form_with_helpers.rb:26:in `block in test_form_with_text_area'
/Users/geremia/dev/rails/actionview/lib/action_view/helpers/capture_helper.rb:50:in `block in capture'
/Users/geremia/dev/rails/actionview/lib/action_view/buffers.rb:75:in `capture'
/Users/geremia/dev/rails/actionview/lib/action_view/helpers/capture_helper.rb:50:in `capture'
/Users/geremia/dev/rails/actionview/lib/action_view/helpers/form_helper.rb:775:in `form_with'
lib/client_side_validations/action_view/form_with_helper.rb:8:in `form_with'
test/action_view/cases/helper.rb:42:in `form_with'
test/action_view/cases/test_legacy_form_with_helpers.rb:25:in `test_form_with_text_area'
rails/rails@3278a40d38
F
Failure:
ClientSideValidations::FormWithActionViewHelpersTest#test_form_with_text_area [test/action_view/cases/test_form_with_helpers.rb:95]:
Expected: <form action="/posts" accept-charset="UTF-8" method="post" data-client-side-validations="{"html_settings":{"type":"ActionView::Helpers::FormBuilder","input_tag":"\u003cdiv class=\"field_with_errors\"\u003e\u003cspan id=\"input_tag\"\u003e\u003c/span\u003e\u003c/div\u003e","label_tag":"\u003cdiv class=\"field_with_errors\"\u003e\u003clabel id=\"label_tag\"\u003e\u003c/label\u003e\u003c/div\u003e"},"number_format":{"separator":".","delimiter":","},"validators":{"post[cost]":{"presence":[{"message":"can't be blank"}]}}}" novalidate="novalidate"><textarea name="post[cost]" id="post_cost">
</textarea></form>
Actual: <form action="/posts" accept-charset="UTF-8" novalidate="novalidate" data-client-side-validations="{"html_settings":{"type":"ActionView::Helpers::FormBuilder","input_tag":"\u003cdiv class=\"field_with_errors\"\u003e\u003cspan id=\"input_tag\"\u003e\u003c/span\u003e\u003c/div\u003e","label_tag":"\u003cdiv class=\"field_with_errors\"\u003e\u003clabel id=\"label_tag\"\u003e\u003c/label\u003e\u003c/div\u003e"},"number_format":{"separator":".","delimiter":","},"validators":{}}" method="post"><textarea name="post[cost]" id="post_cost">
</textarea></form>
Difference:
"post[cost]":{"presence":[{"message":"can't be blank"}]}
Steps to reproduce*
Run test suite against rails edge
Expected behavior*
Tests pass
Actual behavior*
System configuration*
Rails version: Edge
Ruby version: all compatible
Client Side Validations version: main
Code snippet from your model of the validations*
n/a
The whole form code from your template*
n/a
The resulting HTML*
n/a
Browser's development console output*
Additional JavaScript Libraries*
Repository demostrating the issue
Debugging CSV issues is a time consuming task. If you want to speed up things, please provide a link to a repository showing the issue.
* Failure to include this requirement may result in the issue being closed.