summaryrefslogtreecommitdiff
path: root/spec/ruby/core/string
diff options
context:
space:
mode:
authortompng <[email protected]>2024-06-14 21:57:41 +0900
committerYusuke Endoh <[email protected]>2024-10-03 18:47:09 +0900
commitc94815bab720e88c76b46709a1c0b992cae5353c (patch)
treeea4470e29562f0de18f6cc75de4d585c99db3ca9 /spec/ruby/core/string
parentaf1c356c7b318ccdb8abbcf35bd1fff2082bf91b (diff)
Update spec/ruby/ for colon-style hash inspect
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/10924
Diffstat (limited to 'spec/ruby/core/string')
-rw-r--r--spec/ruby/core/string/modulo_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/string/modulo_spec.rb b/spec/ruby/core/string/modulo_spec.rb
index 9045afa263..5d8560000c 100644
--- a/spec/ruby/core/string/modulo_spec.rb
+++ b/spec/ruby/core/string/modulo_spec.rb
@@ -570,7 +570,7 @@ describe "String#%" do
("%1$p" % [10, 5]).should == "10"
("%-22p" % 10).should == "10 "
("%*p" % [10, 10]).should == " 10"
- ("%p" % {capture: 1}).should == "{:capture=>1}"
+ ("%p" % {capture: 1}).should == {capture: 1}.inspect
("%p" % "str").should == "\"str\""
end