Sha256: 3b6c578fcaf08c019c95c9eb36f535b430fa1b579cc471dd8ef760d6eaf378a1

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

require_relative '../spec_helper'

require 'wright/util/pencil_mustache'

describe Wright::Util::PencilMustache do
  describe 'render' do
    it 'should render mustache templates' do
      template = "foo: {{foo}}\n"
      hash = { foo: 'FOO' }
      expected = "foo: FOO\n"
      actual = Wright::Util::PencilMustache.new.render(template, hash)
      actual.must_equal expected
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wright-0.5.0 spec/util/pencil_mustache_spec.rb