Sha256: c46a19f5d96f848040880ba6190a1efe98e99bb410b2d9de4ad7f7a13205ba8f

Contents?: true

Size: 269 Bytes

Versions: 15

Compression:

Stored size: 269 Bytes

Contents

require 'spec_helper'
require 'wlang/html'
module WLang
  describe Html, "&{...}" do

    def render(tpl, scope = {})
      Html.render(tpl, scope, "")
    end

    it 'escapes html' do
      render("&{<script>}", binding).should eq("&lt;script&gt;")
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wlang-3.0.1 spec/integration/html/test_ampersand.rb
wlang-3.0.0 spec/integration/html/test_ampersand.rb
wlang-2.3.1 spec/integration/html/test_ampersand.rb
wlang-2.3.0 spec/integration/html/test_ampersand.rb
wlang-2.2.4 spec/integration/html/test_ampersand.rb
wlang-2.2.3 spec/integration/html/test_ampersand.rb
wlang-2.2.2 spec/integration/html/test_ampersand.rb
wlang-2.2.1 spec/integration/html/test_ampersand.rb
wlang-2.2.0 spec/integration/html/test_ampersand.rb
wlang-2.1.2 spec/integration/html/test_ampersand.rb
wlang-2.1.1 spec/integration/html/test_ampersand.rb
wlang-2.1.0 spec/integration/html/test_ampersand.rb
wlang-2.0.1 spec/integration/html/test_ampersand.rb
wlang-2.0.0 spec/integration/html/test_ampersand.rb
wlang-2.0.0.beta spec/integration/html/test_ampersand.rb