summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/kernel/shared/lambda.rb
blob: bebb111c431c0573fdf609bbe2a007000b59fd8b (plain)
1
2
3
4
5
6
7
8
9
describe :kernel_lambda, shared: true do
  it "returns a Proc object" do
    send(@method) { true }.kind_of?(Proc).should == true
  end

  it "raises an ArgumentError when no block is given" do
    lambda { send(@method) }.should raise_error(ArgumentError)
  end
end