summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/shared/lambda.rb
blob: c7180e144278011a6fd122f097077e8a78300a62 (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
    -> { send(@method) }.should raise_error(ArgumentError)
  end
end