summaryrefslogtreecommitdiff
path: root/spec/ruby/core/method/shared/call.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/method/shared/call.rb')
-rw-r--r--spec/ruby/core/method/shared/call.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/method/shared/call.rb b/spec/ruby/core/method/shared/call.rb
index f178b9da7d..41ee2b06cb 100644
--- a/spec/ruby/core/method/shared/call.rb
+++ b/spec/ruby/core/method/shared/call.rb
@@ -9,12 +9,12 @@ describe :method_call, shared: true do
end
it "raises an ArgumentError when given incorrect number of arguments" do
- lambda {
+ -> {
MethodSpecs::Methods.new.method(:two_req).send(@method, 1, 2, 3)
- }.should raise_error(ArgumentError)
- lambda {
+ }.should.raise(ArgumentError)
+ -> {
MethodSpecs::Methods.new.method(:two_req).send(@method, 1)
- }.should raise_error(ArgumentError)
+ }.should.raise(ArgumentError)
end
describe "for a Method generated by respond_to_missing?" do