[rspec-users] running 1 example

2009-05-18 Thread lawrence.pit
Hi, Suppose you have a file with dozens of examples within several describe/context blocks, and you wanted to focus on just one example. Is there an easy way to run just that one example instead of all the examples in the file? Cheers, Lawrence ___ rs

[rspec-users] before(:all)

2009-05-21 Thread lawrence.pit
Hi All, When I execute database actions within a before(:each) they are rolled back after each example test has run. I expected that if I execute db actions within a before(:all) they would all be rolled back after all examples finished running. This appears not to be the case, in my case. Is ther

Re: [rspec-users] before(:all)

2009-06-07 Thread lawrence.pit
Hi, I took a stab at this and created what I call Machinery. So far it works great for me. For those that are looking for a way to create objects in the database in a before(:all) instead of a before(:each) to speed up tests, have a look at: http://github.com/lawrencepit/machinery Cheers, Lawr