Hello, I had used Fixtures and factory girl for preloading of data in earlier version rspec. Is there any new thing for loading of data in rspec 2 or do we have to use the same. Also is there any documentation link where i can get nice info about rspec 2 -- Posted via http://www.ruby-forum.com/.
On Thu, Jan 13, 2011 at 2:08 PM, Amit Kulkarni <lists at ruby-forum.com> wrote:> Hello, > I had used Fixtures and factory girl for preloading of data in earlier > version rspec. > Is there any new thing for loading of data in rspec 2 or do we have to > use the same. > Also is there any documentation link where i can get nice info about > rspec 2Not official, but nicely put together: http://kerryb.github.com/iprug-rspec-presentation/ Hope it helps, Aleksandar
Hi, On Thu, Jan 13, 2011 at 22:08, Amit Kulkarni <lists at ruby-forum.com> wrote:> I had used Fixtures and factory girl for preloading of data in earlier > version rspec. > Is there any new thing for loading of data in rspec 2 or do we have to > use the same.I have a spec/fixtures/ directory containing YAML files with my fixture data, which I guess is what you''re used to. I like fixture_builder[1] for generating those fixtures for me from Factories if you have them, or just plain old Model.create! calls.> Also is there any documentation link where i can get nice info about > rspec 2There is also some good documentation at http://relishapp.com/rspec Mike [1] https://github.com/rdy/fixture_builder