This repository was archived by the owner on Mar 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -148,14 +148,16 @@ def test_can_iterate_over_all_entries
148148 def test_size
149149 Ref ::Mock . use do
150150 hash = map_class . new
151- assert_true hash . empty?
151+ assert hash . empty?
152152 assert_equal 0 , hash . size
153+ key_1 = Object . new
153154 key_2 = Object . new
154155 hash [ key_1 ] = "value 1"
155- assert_false hash . empty?
156+ hash [ key_2 ] = "value 2"
157+ refute hash . empty?
156158 assert_equal 2 , hash . size
157159 Ref ::Mock . gc ( key_2 )
158- assert_false hash . empty?
160+ refute hash . empty?
159161 assert_equal 1 , hash . size
160162 end
161163 end
Original file line number Diff line number Diff line change @@ -128,16 +128,16 @@ def test_can_iterate_over_all_entries
128128 def test_size
129129 Ref ::Mock . use do
130130 hash = map_class . new
131- assert_true hash . empty?
131+ assert hash . empty?
132132 assert_equal 0 , hash . size
133133 value_1 = "value 1"
134134 value_2 = "value 2"
135135 hash [ "key 1" ] = value_1
136136 hash [ "key 2" ] = value_2
137- assert_false hash . empty?
137+ refute hash . empty?
138138 assert_equal 2 , hash . size
139139 Ref ::Mock . gc ( value_2 )
140- assert_false hash . empty?
140+ refute hash . empty?
141141 assert_equal 1 , hash . size
142142 end
143143 end
You can’t perform that action at this time.
0 commit comments