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

Evgeniy Dolzhenko dolzenko at gmail.com
Mon Jan 31 04:38:04 EST 2011


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).

Anyway likely it's too late to introduce something like this, just my 2 
cents, because I'm from
these folks which were always confused about :each/:all and what is the 
default, etc. when
I just started speccing.


More information about the rspec-users mailing list