Class: DryCrud::Form::BuilderTest
- Inherits:
-
ActionView::TestCase
- Object
- ActionView::TestCase
- DryCrud::Form::BuilderTest
- Includes:
- CrudTestHelper, FormatHelper, I18nHelper
- Defined in:
- lib/generators/dry_crud/templates/test/helpers/dry_crud/form/builder_test.rb
Overview
Test DryCrud::Form::Builder
Instance Attribute Summary collapse
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
-
#form ⇒ Object
readonly
Returns the value of attribute form.
Instance Method Summary collapse
Methods included from CrudTestHelper
#action_name, #controller_name, #h, #model_class, #params, #path_args, #sortable?
Methods included from I18nHelper
#translate_association, #translate_inheritable
Methods included from FormatHelper
#captionize, #f, #format_attr, #labeled, #labeled_attr, #render_attrs, #simple_list
Instance Attribute Details
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
15 16 17 |
# File 'lib/generators/dry_crud/templates/test/helpers/dry_crud/form/builder_test.rb', line 15 def entry @entry end |
#form ⇒ Object (readonly)
Returns the value of attribute form.
15 16 17 |
# File 'lib/generators/dry_crud/templates/test/helpers/dry_crud/form/builder_test.rb', line 15 def form @form end |
Instance Method Details
#create_form ⇒ Object
20 21 22 23 |
# File 'lib/generators/dry_crud/templates/test/helpers/dry_crud/form/builder_test.rb', line 20 def create_form @entry = CrudTestModel.first @form = DryCrud::Form::Builder.new(:entry, @entry, self, {}) end |