From a55c49b6f720e1d68ae8e21b6acb6c711d34bc35 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Fri, 18 Jan 2008 15:25:27 +0100 Subject: Flunk if there are no arguments to #it darcs-hash:20080118142527-4fc50-0690507e5ef3f9638a2c5666047ad0db00e7c7df.gz --- lib/bacon.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit 1.4.1