diff options
Diffstat (limited to 'spec/ruby/core/string/casecmp_spec.rb')
-rw-r--r-- | spec/ruby/core/string/casecmp_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/string/casecmp_spec.rb b/spec/ruby/core/string/casecmp_spec.rb index 35afcc0152..01b22e8f13 100644 --- a/spec/ruby/core/string/casecmp_spec.rb +++ b/spec/ruby/core/string/casecmp_spec.rb @@ -27,7 +27,7 @@ describe "String#casecmp independent of case" do ruby_version_is ""..."2.5" do it "raises a TypeError if other can't be converted to a string" do - lambda { "abc".casecmp(mock('abc')) }.should raise_error(TypeError) + -> { "abc".casecmp(mock('abc')) }.should raise_error(TypeError) end end @@ -198,7 +198,7 @@ describe 'String#casecmp? independent of case' do ruby_version_is "2.4"..."2.5" do it "raises a TypeError if other can't be converted to a string" do - lambda { "abc".casecmp?(mock('abc')) }.should raise_error(TypeError) + -> { "abc".casecmp?(mock('abc')) }.should raise_error(TypeError) end end |