From 172dd9c98e6d0058a928fe2c95d92de7993d1fb1 Mon Sep 17 00:00:00 2001 From: Yossef Mendelssohn Date: Fri, 24 Oct 2008 17:09:42 -0500 Subject: Ensuring that nested before blocks are run in the correct order --- test/spec_bacon.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/spec_bacon.rb b/test/spec_bacon.rb index 2eba03c..b3981ee 100644 --- a/test/spec_bacon.rb +++ b/test/spec_bacon.rb @@ -292,6 +292,14 @@ describe "before/after" do it "should run at the nested level" do @c.should.equal 5 end + + before do + @a = 5 + end + + it "should run in the right order" do + @a.should.equal 5 + end end it "should not run from lower level" do -- cgit 1.4.1