Quoting JDeville <jeffdevi...@gmail.com>:
> The setup for certain integration specs is a bit slow, and I'm generally 
> careful to make my 'it' blocks read-only.  However, I also like to keep my 
> it blocks extremely focused on just 1 thing.  This has become a performance 
> problem though, because the setup is executed for every 'it'.  Is there any 
> way to just run the setup once, and then the actual tests?

Just as there is a before(:each), there is a before(:all) which sounds
like what you are looking for. RSpec 2 docs for this are at
https://www.relishapp.com/rspec/rspec-core/v/2-0/docs/hooks/before-and-after-hooks


-- 
Cynthia N. Kiser
c...@ugcs.caltech.edu
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to