diff --git a/language/lambda_spec.rb b/language/lambda_spec.rb index 2a2953bd9..c6239e32b 100644 --- a/language/lambda_spec.rb +++ b/language/lambda_spec.rb @@ -14,6 +14,12 @@ def create_lambda klass.new.create_lambda.should.instance_of?(Proc) end + it "is not just syntactic sugar for Kernel#lambda" do + should_not_receive(:lambda) + + -> {} + end + it "does not execute the block" do -> { fail }.should.instance_of?(Proc) end