aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string/clear_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/string/clear_spec.rb')
-rw-r--r--spec/ruby/core/string/clear_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/string/clear_spec.rb b/spec/ruby/core/string/clear_spec.rb
index 45d452e947..0b5b8e6998 100644
--- a/spec/ruby/core/string/clear_spec.rb
+++ b/spec/ruby/core/string/clear_spec.rb
@@ -31,7 +31,7 @@ describe "String#clear" do
it "raises a #{frozen_error_class} if self is frozen" do
@s.freeze
- lambda { @s.clear }.should raise_error(frozen_error_class)
- lambda { "".freeze.clear }.should raise_error(frozen_error_class)
+ -> { @s.clear }.should raise_error(frozen_error_class)
+ -> { "".freeze.clear }.should raise_error(frozen_error_class)
end
end