blob: c70640082a13127a363749d188500c5ac952adf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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
suppress_warning do
-> { send(@method) }.should raise_error(ArgumentError)
end
end
end
|