Sha256: 2889672a39fa7f0cf2f30b954087f5d33a3efc16eb7aa9de30a16185dd3c57b7
Contents?: true
Size: 537 Bytes
Versions: 13
Compression:
Stored size: 537 Bytes
Contents
$LOAD_PATH.unshift File.dirname(__FILE__) require 'helper' class TemplateTest < Test::Unit::TestCase def test_compile assert_equal %("foo"), Mustache::Template.new("foo").compile end def test_compile_with_source assert_equal %("bar"), Mustache::Template.new("foo").compile("bar") end def test_token assert_equal [:multi, [:static, "foo"]], Mustache::Template.new("foo").tokens end def test_token_with_source assert_equal [:multi, [:static, "bar"]], Mustache::Template.new("foo").tokens("bar") end end
Version data entries
13 entries across 13 versions & 3 rubygems