Sha256: 8f7d8b6965905a5dd40a5235f5daa2c456874a29206fb13f9b9333e5bf8394d5

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 Bytes

Contents

require 'spec_helper'
module WLang
  describe Template, 'to_ruby_code' do

    let(:template){ Template.new("Hello ${who}!") }

    it 'it returns some ruby code' do
      expected = %q{Proc.new{|d1,b1| b1 << ("Hello ".freeze); d1._tag_36(b1, "who"); b1 << ("!".freeze) }}
      template.to_ruby_code.should eq(expected)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wlang-3.0.1 spec/unit/template/test_to_ruby_code.rb
wlang-3.0.0 spec/unit/template/test_to_ruby_code.rb