Skip to content

Commit

Permalink
Merge pull request #20 from rogernorling/master
Browse files Browse the repository at this point in the history
Specifications with just a name correctly flunks with "not implemented"
  • Loading branch information
leahneukirchen committed Jan 9, 2014
2 parents 1afb20f + ce524a6 commit dc7f88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bacon.rb
Expand Up @@ -156,7 +156,7 @@ def behaves_like(*names)

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
Expand Down

0 comments on commit dc7f88f

Please sign in to comment.