public
Rubygem
Description: Advanced seed data handling for Rails, combining the best practices of several methods together.
Homepage: http://mbleigh.lighthouseapp.com/projects/10223-seed-fu
Clone URL: git://github.com/mbleigh/seed-fu.git
Refactoring Plugin to be Gem Friendly
jcnetdev (author)
Fri Jul 04 11:55:20 -0700 2008
commit  7bb6de5ca04b9575cf4ab7b9971ead3fb00ac8f1
tree    63c07ec4e76d21f0df63c2cfeca5a4d407139f2e
parent  93e54062cec39aad5249c4dbcc35bcaa8efcf633
...
1
2
 
3
...
 
1
2
3
0
@@ -1 +1 @@
0
-require 'seeder'
0
\ No newline at end of file
0
+require File.dirname(__FILE__) + "/rails/init"
0
\ No newline at end of file
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/spec_helper'
0
 
0
 load(File.dirname(__FILE__) + '/schema.rb')
0
 
0
-describe Seeder do
0
+describe SeedFu::Seeder do
0
   it "should create a model if one doesn't exist" do
0
     SeededModel.seed(:id) do |s|
0
       s.id = 1

Comments