Method: Rails::Generators::Testing::Assertions#assert_field_type
- Defined in:
- railties/lib/rails/generators/testing/assertions.rb
permalink #assert_field_type(attribute_type, field_type) ⇒ Object
Asserts the given attribute type gets translated to a field type properly:
assert_field_type :date, :date_select
108 109 110 |
# File 'railties/lib/rails/generators/testing/assertions.rb', line 108 def assert_field_type(attribute_type, field_type) assert_equal(field_type, create_generated_attribute(attribute_type).field_type) end |