Chris Downey wrote in post #1038285:> Does anybody know of a way to populate fixtures with seed data?
I''ve
> put a
> great deal of time and thought into the seeds.rb code - it sure would be
> handy to run tests on that data. I''m hoping to not have to
somehow
> duplicate seed data in the YML files.
This really doesn''t make sense, in my opinion. Seed data and test data
are two separate things. Test data should be tailored specifically for
the tests you actually write. In fact I don''t actually use fixture data
at all. Instead I use test data factories using a gem such as Factory
Girl.
https://github.com/thoughtbot/factory_girl_rails
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.