diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2008-01-18 15:25:27 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2008-01-18 15:25:27 +0100 |
commit | a55c49b6f720e1d68ae8e21b6acb6c711d34bc35 (patch) | |
tree | 42c47874a5514a715f858747ddd5935c274c563b | |
parent | 7c7f279c9b61a89240f93c0339042cbd7485d0c5 (diff) | |
download | bacon-a55c49b6f720e1d68ae8e21b6acb6c711d34bc35.tar.gz bacon-a55c49b6f720e1d68ae8e21b6acb6c711d34bc35.tar.xz bacon-a55c49b6f720e1d68ae8e21b6acb6c711d34bc35.zip |
Flunk if there are no arguments to #it
darcs-hash:20080118142527-4fc50-0690507e5ef3f9638a2c5666047ad0db00e7c7df.gz
-rw-r--r-- | lib/bacon.rb | 1 |
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 |