Skip to content

Commit 038e328

Browse files
eregonCopilot
andcommitted
Tweaks
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 4d9420a commit 038e328

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Here's an example of a snippet of a shared spec and two specs which integrates i
246246
# core/hash/shared/iteration.rb
247247
describe :hash_iteration_no_block, shared: true do
248248
it "returns an Enumerator if called on a non-empty hash without a block" do
249-
{}.send(@method).should.instance_of?(Enumerator)
249+
{ 1 => 2 }.send(@method).should.instance_of?(Enumerator)
250250
end
251251
end
252252

@@ -256,7 +256,7 @@ describe "Hash#select" do
256256
end
257257

258258
# core/hash/reject_spec.rb
259-
describe "Hash#reject?" do
259+
describe "Hash#reject" do
260260
it_behaves_like :hash_iteration_no_block, :reject
261261
end
262262
```

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)