Class: ExampleAppShowcaseChoiceScaleFieldsTest
- Inherits:
-
ExampleAppIntegrationTestCase
- Object
- ActionDispatch::IntegrationTest
- ExampleAppIntegrationTestCase
- ExampleAppShowcaseChoiceScaleFieldsTest
- Defined in:
- lib/installer_templates/example_app_tests/test/integration/example_app_showcase_choice_scale_fields_test.rb
Overview
Choice helpers on FormElementShowcase:
check_box (is_active, 0|1)
radio_button (gender, hash)
dropdown_with_integers (rating_int)
dropdown_with_values (priority normal + priority2 options_disabled)
dropdown_with_values_with_stars (stars)
(scale_with_integers / scale_with_values are dropped from the showcase until their runtime show helpers are repaired; see CHANGELOG 8.1.6.)
Instance Method Summary collapse
Instance Method Details
#field_frame(attr) ⇒ Object
18 19 20 |
# File 'lib/installer_templates/example_app_tests/test/integration/example_app_showcase_choice_scale_fields_test.rb', line 18 def field_frame(attr) "form_element_showcase_#{@showcase.id}_#{attr}" end |
#field_headers(attr) ⇒ Object
22 23 24 |
# File 'lib/installer_templates/example_app_tests/test/integration/example_app_showcase_choice_scale_fields_test.rb', line 22 def field_headers(attr) { "Turbo-Frame" => field_frame(attr), "Accept" => "text/html" } end |
#underscored_param_root ⇒ Object
26 27 28 |
# File 'lib/installer_templates/example_app_tests/test/integration/example_app_showcase_choice_scale_fields_test.rb', line 26 def underscored_param_root "_form_element_showcase" end |