Class: FormHelperTest

Inherits:
ActionView::TestCase
  • Object
show all
Includes:
CrudTestHelper, FormatHelper, I18nHelper, UtilityHelper
Defined in:
lib/generators/dry_crud/templates/test/helpers/form_helper_test.rb

Overview

Test FormHelper

Constant Summary

Constants included from UtilityHelper

UtilityHelper::EMPTY_STRING

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

Methods included from UtilityHelper

#add_css_class, #assoc_and_id_attr, #association, #column_property, #column_type, #content_tag_nested, #default_crud_attrs, #flash_class, #safe_join

Instance Method Details

#entryObject



129
130
131
# File 'lib/generators/dry_crud/templates/test/helpers/form_helper_test.rb', line 129

def entry
  @entry ||= CrudTestModel.first
end