Rspec Before/After All/Each order of operation
I'm using Rspec for testing. I'm seeking confirmation of the
following, that the way it is laid out is how it is supposed to
function. Rspec is supposed to test the inner describe Before(:all)
before it tests the outer describe before(:each). I can see how it
should be that way, in that the inner Before(:all) is probably more
important to the inner describe function than the outer
before(:each). It just feels a little un-intuitive that way. I just
want to make sure that is exactly as planned. Thanks for your time.
describe ClassNameHere,'Outer test wrapper' do
before(:all) do # (01)
puts '(1) First in operation'
puts '(3) Third in operation'
puts '(4) Fourth in operation'
puts '(5) Last in operation - cleanup my mess'
describe 'Inner test wrapper #1' do
puts '(2a) Second operation'
describe 'Inner test wrapper #2' do
puts '(2b) I got here - no tmp'
Re: Rspec Before/After All/Each order of operation
maybe repost to the rspec group? They're usually quite responsive.
Posted via http://www.ruby-forum.com/.
|All times are GMT. The time now is 04:42 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.