Class: DryCrud::Table::BuilderTest
- Inherits:
-
ActionView::TestCase
- Object
- ActionView::TestCase
- DryCrud::Table::BuilderTest
- Includes:
- FormatHelper
- Defined in:
- lib/generators/dry_crud/templates/test/helpers/dry_crud/table/builder_test.rb
Overview
Test DryCrud::Table::Builder
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
Methods included from FormatHelper
#captionize, #f, #format_attr, #labeled, #labeled_attr, #render_attrs, #simple_list
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
12 13 14 |
# File 'lib/generators/dry_crud/templates/test/helpers/dry_crud/table/builder_test.rb', line 12 def entries @entries end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
12 13 14 |
# File 'lib/generators/dry_crud/templates/test/helpers/dry_crud/table/builder_test.rb', line 12 def table @table end |
Instance Method Details
#format_size(obj) ⇒ Object
19 20 21 |
# File 'lib/generators/dry_crud/templates/test/helpers/dry_crud/table/builder_test.rb', line 19 def format_size(obj) "#{obj.size} chars" end |