module GeneratorSpec::GeneratorExampleGroup::InstanceMethods
def create_generated_attribute(attribute_type, name = 'test')
create_generated_attribute(:string, 'name')
attribute type and, optionally, the attribute name:
Create a Rails::Generators::GeneratedAttribute by supplying the
def create_generated_attribute(attribute_type, name = 'test') Rails::Generators::GeneratedAttribute.new(name, attribute_type.to_s) end