Rspec version is 1.3.0
Given following spec code:
describe "SomeModule" do
before(:all) { puts "BEFORE" }
after(:all) { puts "AFTER"; puts }
context "One" do
it "should puts A" do puts "A" end
it "should puts B" do puts "B" end
end
context "Two" do
it "should puts C" do puts "C" end
it "should puts D" do puts "D" end
end
end
It results in following output:
BEFORE
C
.D
.AFTER
BEFORE
A
.B
.AFTER