mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
- Organized the files - Cleaned up some of the white spacing issues - A lot can still be done to make the tests more readable to the new developers
16 lines
458 B
Ruby
16 lines
458 B
Ruby
require 'test_helper'
|
|
|
|
class AssignTest < Test::Unit::TestCase
|
|
include Liquid
|
|
|
|
def test_assigned_variable
|
|
assert_template_result('.foo.',
|
|
'{% assign foo = values %}.{{ foo[0] }}.',
|
|
'values' => %w{foo bar baz})
|
|
|
|
assert_template_result('.bar.',
|
|
'{% assign foo = values %}.{{ foo[1] }}.',
|
|
'values' => %w{foo bar baz})
|
|
end
|
|
end # AssignTest
|