Avoid a couple of duplicate assertions (#1675)

This commit is contained in:
Dylan Thacker-Smith
2023-02-02 09:31:01 -05:00
committed by GitHub
parent 22ded5f304
commit 59c445f0e1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ class ContextTest < Minitest::Test
assigns = { 'product' => { 'variants' => [{ 'title' => 'draft151cm' }, { 'title' => 'element151cm' }] } }
assert_template_result("draft151cm", '{{ product["variants"][0]["title"] }}', assigns)
assert_template_result("element151cm", '{{ product["variants"][1]["title"] }}', assigns)
assert_template_result("draft151cm", '{{ product["variants"][0]["title"] }}', assigns)
assert_template_result("draft151cm", '{{ product["variants"].first["title"] }}', assigns)
assert_template_result("element151cm", '{{ product["variants"].last["title"] }}', assigns)
end
+1 -1
View File
@@ -62,7 +62,7 @@ class IfElseTagTest < Minitest::Test
def test_if_and
assert_template_result(' YES ', '{% if true and true %} YES {% endif %}')
assert_template_result('', '{% if false and true %} YES {% endif %}')
assert_template_result('', '{% if false and true %} YES {% endif %}')
assert_template_result('', '{% if true and false %} YES {% endif %}')
end
def test_hash_miss_generates_false