Sha256: c006b4b35aef4583fb6657c8391d693297a4580439b4ffe8e4f0486f78e55524

Contents?: true

Size: 604 Bytes

Versions: 12

Compression:

Stored size: 604 Bytes

Contents

# Read about fixtures at http://api.rubyonrails.org/classes/Fixtures.html

<% unless attributes.empty? -%>
one:
<% attributes.each do |attribute| -%>
  <%= attribute.name %>: <%= attribute.default %>
<% end -%>

two:
<% attributes.each do |attribute| -%>
  <%= attribute.name %>: <%= attribute.default %>
<% end -%>
<% else -%>
# This model initially had no columns defined.  If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
#  column: value
<% end -%>

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
railties-3.1.0 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.1.0.rc8 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.1.0.rc6 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.1.0.rc5 lib/rails/generators/test_unit/model/templates/fixtures.yml
minitest-rails-0.0.5 lib/generators/mini_test/model/templates/fixtures.yml
railties-3.1.0.rc4 lib/rails/generators/test_unit/model/templates/fixtures.yml
railties-3.1.0.rc3 lib/rails/generators/test_unit/model/templates/fixtures.yml
minitest-rails-0.0.4 lib/generators/mini_test/model/templates/fixtures.yml
railties-3.1.0.rc2 lib/rails/generators/test_unit/model/templates/fixtures.yml
minitest-rails-0.0.2 lib/generators/minitest/model/templates/fixtures.yml
minitest-rails-0.0.1 lib/generators/minitest/model/templates/fixtures.yml
railties-3.1.0.rc1 lib/rails/generators/test_unit/model/templates/fixtures.yml