Sha256: 299322b79b9317153c40a161c7b0e812ddda3d3735f5675ab9829c67e3629f54

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

require 'spec_helper'

describe Alephant::Renderer::Engine::Mustache do
  let(:base_path) { File.join(File.dirname(__FILE__), 'fixtures') }
  let(:namespace) { 'sample' }

  subject { described_class.new(base_path, namespace) }

  describe 'Renders a template' do
    it 'should render some data to a template' do
      data = {
        item1: 'AAA',
        item2: 'bbb'
      }
      expect(subject.render(data)).to eq('<span>AAA</span><span>bbb</span>')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alephant-renderer-3.2.0 spec/integration/engine_mustache_spec.rb
alephant-renderer-3.1.0 spec/integration/engine_mustache_spec.rb
alephant-renderer-3.0.0 spec/integration/engine_mustache_spec.rb