From a07796dba6c8ede22b682e7478e82434c2756c68 Mon Sep 17 00:00:00 2001 From: Yossef Mendelssohn Date: Fri, 24 Oct 2008 17:06:18 -0500 Subject: Ensuring that before blocks don't bleed into sibling levels --- test/spec_bacon.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/spec_bacon.rb b/test/spec_bacon.rb index fd3e09b..2eba03c 100644 --- a/test/spec_bacon.rb +++ b/test/spec_bacon.rb @@ -297,6 +297,12 @@ describe "before/after" do it "should not run from lower level" do @c.should.be.nil end + + describe "when nested at a sibling level" do + it "should not run from sibling level" do + @c.should.be.nil + end + end end shared "a shared context" do -- cgit 1.4.1