aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string/ord_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/string/ord_spec.rb')
-rw-r--r--spec/ruby/core/string/ord_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/string/ord_spec.rb b/spec/ruby/core/string/ord_spec.rb
index 63f9815ea9..0f5a3f6a37 100644
--- a/spec/ruby/core/string/ord_spec.rb
+++ b/spec/ruby/core/string/ord_spec.rb
@@ -23,6 +23,6 @@ describe "String#ord" do
end
it "raises an ArgumentError if called on an empty String" do
- lambda { ''.ord }.should raise_error(ArgumentError)
+ -> { ''.ord }.should raise_error(ArgumentError)
end
end