Sha256: 0e87528fd549f921c7ef059fe48c6282b1744672e56107ed3d9b9afb3db47d8c

Contents?: true

Size: 384 Bytes

Versions: 12

Compression:

Stored size: 384 Bytes

Contents

# -*- coding: utf-8 -*-
require 'spec_helper'
require 'knife_skeleton/template'

# Template tests
module KnifeSkeleton
  describe 'Template.render' do
    it 'renders ERB template' do
      template = 'May the force be with <%= name %>.'
      data = { name: 'you' }
      output = Template.render(template, data)
      output.should == 'May the force be with you.'
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
knife-skeleton-0.6.1 spec/knife_skeleton/template_spec.rb
knife-skeleton-0.6.0 spec/knife_skeleton/template_spec.rb
knife-skeleton-0.5.1 spec/knife_skeleton/template_spec.rb
knife-skeleton-0.5.0 spec/knife_skeleton/template_spec.rb
knife-skeleton-0.4.0 spec/knife_skeleton/template_spec.rb
knife-skeleton-0.3.0 spec/knife_skeleton/template_spec.rb
knife-skeleton-0.2.0 spec/knife_skeleton/template_spec.rb
knife-skeleton-0.1.0 spec/knife_skeleton/template_spec.rb
knife-skeleton-0.0.4 spec/knife_skeleton/template_spec.rb
knife-skeleton-0.0.3 spec/knife_skeleton/template_spec.rb
knife-skeleton-0.0.2 spec/knife_skeleton/template_spec.rb
knife-skeleton-0.0.1 spec/knife_skeleton/template_spec.rb