diff options
-rw-r--r-- | test/spec_bacon.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 |