summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2008-01-18 15:25:27 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2008-01-18 15:25:27 +0100
commita55c49b6f720e1d68ae8e21b6acb6c711d34bc35 (patch)
tree42c47874a5514a715f858747ddd5935c274c563b /lib
parent7c7f279c9b61a89240f93c0339042cbd7485d0c5 (diff)
downloadbacon-a55c49b6f720e1d68ae8e21b6acb6c711d34bc35.tar.gz
bacon-a55c49b6f720e1d68ae8e21b6acb6c711d34bc35.tar.xz
bacon-a55c49b6f720e1d68ae8e21b6acb6c711d34bc35.zip
Flunk if there are no arguments to #it
darcs-hash:20080118142527-4fc50-0690507e5ef3f9638a2c5666047ad0db00e7c7df.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/bacon.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb
index 0bede91..93b6880 100644
--- a/lib/bacon.rb
+++ b/lib/bacon.rb
@@ -122,6 +122,7 @@ module Bacon
 
     def it(description, &block)
       return  unless description =~ RestrictName
+      block ||= lambda { should.flunk "not implemented" }
       Counter[:specifications] += 1
       run_requirement description, block
     end