Skip to content

Commit

Permalink
impact guides with no CSV fixture support
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinez87 committed May 10, 2011
1 parent 8567ab9 commit 177f7fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/guides/source/testing.textile
Expand Up @@ -54,7 +54,7 @@ For good tests, you'll need to give some thought to setting up test data. In Rai

h5. What are Fixtures?

_Fixtures_ is a fancy word for sample data. Fixtures allow you to populate your testing database with predefined data before your tests run. Fixtures are database independent and assume one of two formats: *YAML* or *CSV*. In this guide, we will use *YAML*, which is the preferred format.
_Fixtures_ is a fancy word for sample data. Fixtures allow you to populate your testing database with predefined data before your tests run. Fixtures are database independent and assume a single format: *YAML*.

You'll find fixtures under your +test/fixtures+ directory. When you run +rails generate model+ to create a new model, fixture stubs will be automatically created and placed in this directory.

Expand All @@ -81,7 +81,7 @@ Each fixture is given a name followed by an indented list of colon-separated key

h5. ERB'in It Up

ERB allows you to embed ruby code within templates. Both the YAML and CSV fixture formats are pre-processed with ERB when you load fixtures. This allows you to use Ruby to help you generate some sample data.
ERB allows you to embed ruby code within templates. YAML fixture format is pre-processed with ERB when you load fixtures. This allows you to use Ruby to help you generate some sample data.

<erb>
<% earth_size = 20 %>
Expand Down

0 comments on commit 177f7fa

Please sign in to comment.