Skip to content

Commit 742173f

Browse files
committed
prefer equal? to determine object identity
1 parent e7da015 commit 742173f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/engine_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def test_empty_template
286286
def test_empty_template_returns_a_new_object
287287
input = String.new
288288
output = Engine.new(input).render
289-
assert input.object_id != output.object_id, 'empty template must return a new object'
289+
assert !input.equal?(output), 'empty template must return a new object'
290290
end
291291

292292
def test_empty_template_encoding_matches_input

0 commit comments

Comments
 (0)