From c25b43a05d6e41eccd6d0804b2fbebe4d840d2f2 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Fri, 11 Dec 2009 13:26:10 -0500 Subject: [PATCH] Generate fixture data for empty models that complements the functional tests that are also generated. --- .../test_unit/model/templates/fixtures.yml | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml b/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml index c210351..5ccb76f 100644 --- a/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml +++ b/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml @@ -11,9 +11,14 @@ two: <%= attribute.name %>: <%= attribute.default %> <% end -%> <% else -%> -# one: -# column: value # -# two: -# column: value +# 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 -%> -- 1.6.0.4