Sha256: c4beea623da990cf81a02feb61eb33dcf9b355b018cff9b05f6cab73f020c0a3

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

class AssignTest < Test::Unit::TestCase
  include Liquor
  
  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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
liquor-0.1.1 test/assign_test.rb
liquor-0.1.0 test/assign_test.rb