Skip to content

Commit 0c17a7c

Browse files
eregonCopilot
andauthored
Tweaks
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 5b3d092 commit 0c17a7c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/hash/element_set_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require_relative 'fixtures/classes'
33

44
describe "Hash#[]=" do
5-
it "associates the key with the value and return the value" do
5+
it "associates the key with the value" do
66
h = { a: 1 }
77
h[:b] = 2
88
h.should == { b:2, a:1 }

core/hash/inspect_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
it "works for keys and values whose #inspect return a frozen String" do
8383
expected = ruby_version_is("3.4") ? "{true => false}" : "{true=>false}"
84-
{ true => false }.to_s.should == expected
84+
{ true => false }.inspect.should == expected
8585
end
8686

8787
ruby_version_is "3.4" do

0 commit comments

Comments
 (0)