myronmarston-factory_data_preloader 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +2 -2
- data/VERSION.yml +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -30,8 +30,8 @@ Load the gem using Rails' 2.1+ gem support, in either config/environment.rb, or
|
|
30
30
|
:lib => 'factory_data_preloader',
|
31
31
|
:source => 'http://gems.github.com'
|
32
32
|
|
33
|
-
Define your preloaded data.
|
34
|
-
Define your data like this:
|
33
|
+
Define your preloaded data. FactoryData will automatically require test/factory_data.rb or test/factory_data/*.rb.
|
34
|
+
Define your data in these files like this:
|
35
35
|
|
36
36
|
FactoryData.preload(:users) do |data|
|
37
37
|
data[:thom] = User.create(:first_name => 'Thom', :last_name => 'York')
|
data/VERSION.yml
CHANGED