summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorYossef Mendelssohn <ymendel@pobox.com>2008-10-24 17:09:42 -0500
committerYossef Mendelssohn <ymendel@pobox.com>2008-10-24 17:16:36 -0500
commit172dd9c98e6d0058a928fe2c95d92de7993d1fb1 (patch)
tree7e887f788ac1259a0e00337fbb51083805621486 /test
parenta07796dba6c8ede22b682e7478e82434c2756c68 (diff)
downloadbacon-172dd9c98e6d0058a928fe2c95d92de7993d1fb1.tar.gz
bacon-172dd9c98e6d0058a928fe2c95d92de7993d1fb1.tar.xz
bacon-172dd9c98e6d0058a928fe2c95d92de7993d1fb1.zip
Ensuring that nested before blocks are run in the correct order
Diffstat (limited to 'test')
-rw-r--r--test/spec_bacon.rb8
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