Skip to content

Commit 219865d

Browse files
authored
Merge pull request #122 from ahorek/equal
prefer equal? to determine object identity
2 parents 4f98263 + 742173f commit 219865d

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)