To view this screencast, add it to
your cart
and
checkout.
You can buy this screencast for any price, including FREE!
Scenarios is a little RubyGem for organizing arbitrary snippets of Ruby code.
We specifically use it to load up the development database with data. It’s especially powerful in combination with a nice factory gem like Factory Girl / Object Daddy or, for loading up the database with lots of data, a data generation gem like Faker
To load up the development data with scenario(s) …
1 $ rake scenarios:load NAME=dependencies,create_lots_of_data
It can also be useful to use scenarios from tests/specs
1 describe 'Home Page' do 2 3 scenarios :dependencies, :website_pages 4 5 it 'should actually show something on the home page' 6 7 end
See http://github.com/openrain/scenarios or watch the screencast for more info.