From ce524a6a2171700f79a85da263b23723be8af8fe Mon Sep 17 00:00:00 2001 From: Roger Norling Date: Thu, 9 Jan 2014 22:07:53 +0100 Subject: Specifications with just a name correctly flunks with "not implemented" --- lib/bacon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bacon.rb b/lib/bacon.rb index 771c6d6..8d5e099 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -156,7 +156,7 @@ module Bacon def it(description, &block) return unless description =~ RestrictName - block ||= lambda { should.flunk "not implemented" } + block ||= proc { should.flunk "not implemented" } Counter[:specifications] += 1 run_requirement description, block end -- cgit 1.4.1