Sha256: f56cf6ba65a1f556d664d72b67826c4fe5147e3aaa6ce2dd9d366a9533caf481

Contents?: true

Size: 251 Bytes

Versions: 17

Compression:

Stored size: 251 Bytes

Contents

require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__)))

describe "h plugin" do 
  it "adds h method for html escaping" do
    app(:h) do |r|
      h("<form>") + h(:form)
    end

    body.must_equal '&lt;form&gt;form'
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
roda-2.18.0 spec/plugin/h_spec.rb
roda-2.17.0 spec/plugin/h_spec.rb
roda-2.16.0 spec/plugin/h_spec.rb
roda-2.15.0 spec/plugin/h_spec.rb
roda-2.14.0 spec/plugin/h_spec.rb
roda-2.13.0 spec/plugin/h_spec.rb
roda-2.12.0 spec/plugin/h_spec.rb
roda-2.11.0 spec/plugin/h_spec.rb
roda-2.10.0 spec/plugin/h_spec.rb
roda-2.9.0 spec/plugin/h_spec.rb
roda-2.8.0 spec/plugin/h_spec.rb
roda-2.7.0 spec/plugin/h_spec.rb
roda-2.6.0 spec/plugin/h_spec.rb
roda-2.5.1 spec/plugin/h_spec.rb
roda-2.5.0 spec/plugin/h_spec.rb
roda-2.4.0 spec/plugin/h_spec.rb
roda-2.3.0 spec/plugin/h_spec.rb