Sha256: 19bcd895e093c5001d4b58ce30b2d4fd2884eadbc2510e106d051e804d2f3cad
Contents?: true
Size: 649 Bytes
Versions: 1
Compression:
Stored size: 649 Bytes
Contents
require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__))) begin require 'tilt/erb' begin require 'tilt/erubis' rescue LoadError # Tilt 1 support end rescue LoadError warn "tilt or erubis not installed, skipping _erubis_escaping plugin test" else describe "_erubis_escaping plugin" do before do app(:bare) do plugin :render, :escape=>true route do |r| render(:inline=>'<%= "<>" %> <%== "<>" %><%= "<>" if false %>') end end end it "should escape inside <%= %> and not inside <%== %>, and handle postfix conditionals" do body.should == '<> <>' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roda-cj-0.9.6 | spec/plugin/_erubis_escaping_spec.rb |