Hi all
I am doing some stunts using around each. I found some different odd
with around(:each). When I run below example it gives output as:
describe "AroundSpec" do
before(:each) do
p "On before each block"
end
around(:each) do
p "On around each block"
end
it "1+1 = 2" do
expect(1+1).to eq(2)
end
end
output:
"On around each block"
.
Finished in 0.00038 seconds
1 example, 0 failures
If you notice it doesn't executing before each block. Is this way
suppose to be it work or is it a bug? Could you help out. Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rspec/d233ce8f-6831-459d-922b-06bc8dd509f3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.