Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions language/lambda_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading