class Rspec::Generators::ScaffoldGenerator

def raw_value_for(attribute)

def raw_value_for(attribute)
  case attribute.type
  when :string
    attribute.name.titleize
  when :integer, :float
    @attribute_id_map ||= {}
    @attribute_id_map[attribute] ||= @attribute_id_map.keys.size.next + attribute.default
  else
    attribute.default
  end
end