[rspec-users] Difference between :each and :all

Steven Rogers srogers1 at gmail.com
Mon Jan 31 09:29:37 EST 2011


On Jan 31, 2011, at 3:38 AM, Evgeniy Dolzhenko wrote:

> Btw. there is also before(:suite), and working from there wouldn't it make sense to have
> 
> 1. before(:suite)
> 2. before(:group)
> 3. before(:example)
> 
> which would reflect the hierarchy of RSpec run (i.e. suite > group > example).

That or :once and :always

SR



More information about the rspec-users mailing list