aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string/shared/succ.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/string/shared/succ.rb')
-rw-r--r--spec/ruby/core/string/shared/succ.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/string/shared/succ.rb b/spec/ruby/core/string/shared/succ.rb
index 0ab659864d..31b4a8b5dd 100644
--- a/spec/ruby/core/string/shared/succ.rb
+++ b/spec/ruby/core/string/shared/succ.rb
@@ -82,7 +82,7 @@ describe :string_succ_bang, shared: true do
end
it "raises a #{frozen_error_class} if self is frozen" do
- lambda { "".freeze.send(@method) }.should raise_error(frozen_error_class)
- lambda { "abcd".freeze.send(@method) }.should raise_error(frozen_error_class)
+ -> { "".freeze.send(@method) }.should raise_error(frozen_error_class)
+ -> { "abcd".freeze.send(@method) }.should raise_error(frozen_error_class)
end
end