summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2007-12-05 01:58:08 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2007-12-05 01:58:08 +0100
commitb0602a7143ca94a6639724fcebb3e4e4ecc29fdb (patch)
tree2637fdffd86790989107164a40b15070361c49b8 /test
parentf41bc742a0bc006cfdf02c014f90ba2b613ee292 (diff)
downloadbacon-b0602a7143ca94a6639724fcebb3e4e4ecc29fdb.tar.gz
bacon-b0602a7143ca94a6639724fcebb3e4e4ecc29fdb.tar.xz
bacon-b0602a7143ca94a6639724fcebb3e4e4ecc29fdb.zip
Test Context#should.{throw,raise}
darcs-hash:20071205005808-4fc50-042ef423f840f7cc0f37003112e8f95794446de0.gz
Diffstat (limited to 'test')
-rw-r--r--test/spec_bacon.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/spec_bacon.rb b/test/spec_bacon.rb
index 0f6e95e..2038e8a 100644
--- a/test/spec_bacon.rb
+++ b/test/spec_bacon.rb
@@ -199,11 +199,15 @@ describe "Bacon" do
   it "should have should.raise" do
     lambda { lambda { bla }.should.raise(NameError) }.should succeed
     lambda { lambda { nil }.should.raise(NameError) }.should fail
+
+    should.raise(NameError) { bla }
   end
 
   it "should have should.throw" do
     lambda { lambda { throw :foo }.should.throw(:foo) }.should succeed
     lambda { lambda {       :foo }.should.throw(:foo) }.should fail
+
+    should.throw(:foo) { throw :foo }
   end
 
   it "should have should <operator> (>, >=, <, <=, ===)" do