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

Version Path
mustache-0.99.5 test/template_test.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/mustache-0.99.4/test/template_test.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/mustache-0.99.4/test/template_test.rb
mustache-bibanon-0.99.5 test/template_test.rb
mustache-0.99.4 test/template_test.rb
mustache-0.99.3 test/template_test.rb
mustache-0.99.2 test/template_test.rb
mustache-0.99.1 test/template_test.rb
mustache-0.99.0 test/template_test.rb
mustache-0.98.0 test/template_test.rb
mustache-0.13.0 test/template_test.rb
mustache-0.12.1 test/template_test.rb
mustache-0.12.0 test/template_test.rb