summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoger Norling <roger.norling.se@gmail.com>2014-01-09 22:07:53 +0100
committerRoger Norling <roger.norling.se@gmail.com>2014-01-09 22:07:53 +0100
commitce524a6a2171700f79a85da263b23723be8af8fe (patch)
tree3024e988b50924772b25ecdbd9651a3a5195a122
parent1afb20fb274ab07f7a7f722e460c42227f4ceaac (diff)
downloadbacon-ce524a6a2171700f79a85da263b23723be8af8fe.tar.gz
bacon-ce524a6a2171700f79a85da263b23723be8af8fe.tar.xz
bacon-ce524a6a2171700f79a85da263b23723be8af8fe.zip
Specifications with just a name correctly flunks with "not implemented"
-rw-r--r--lib/bacon.rb2
1 files changed, 1 insertions, 1 deletions
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