aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string/partition_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/string/partition_spec.rb')
-rw-r--r--spec/ruby/core/string/partition_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/string/partition_spec.rb b/spec/ruby/core/string/partition_spec.rb
index f7ab5f85aa..996368d6a4 100644
--- a/spec/ruby/core/string/partition_spec.rb
+++ b/spec/ruby/core/string/partition_spec.rb
@@ -28,8 +28,8 @@ describe "String#partition with String" do
end
it "raises an error if not convertible to string" do
- lambda{ "hello".partition(5) }.should raise_error(TypeError)
- lambda{ "hello".partition(nil) }.should raise_error(TypeError)
+ ->{ "hello".partition(5) }.should raise_error(TypeError)
+ ->{ "hello".partition(nil) }.should raise_error(TypeError)
end
it "takes precedence over a given block" do