Sha256: b9fb1f478b35f6c0000f5ff934eb0f4a3dc67fbc0c75b4c7d8255db036d06d55

Contents?: true

Size: 325 Bytes

Versions: 12

Compression:

Stored size: 325 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 "); d1._tag_36(b1, "who"); b1 << ("!") }}
      template.to_ruby_code.should eq(expected)
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
wlang-2.3.1 spec/unit/template/test_to_ruby_code.rb
wlang-2.3.0 spec/unit/template/test_to_ruby_code.rb
wlang-2.2.4 spec/unit/template/test_to_ruby_code.rb
wlang-2.2.3 spec/unit/template/test_to_ruby_code.rb
wlang-2.2.2 spec/unit/template/test_to_ruby_code.rb
wlang-2.2.1 spec/unit/template/test_to_ruby_code.rb
wlang-2.2.0 spec/unit/template/test_to_ruby_code.rb
wlang-2.1.2 spec/unit/template/test_to_ruby_code.rb
wlang-2.1.1 spec/unit/template/test_to_ruby_code.rb
wlang-2.1.0 spec/unit/template/test_to_ruby_code.rb
wlang-2.0.1 spec/unit/template/test_to_ruby_code.rb
wlang-2.0.0 spec/unit/template/test_to_ruby_code.rb