Sha256: 17c3ca75973772635741584b44555af1f6f3f0796b9de482a0c00ff3eceb8ee4

Contents?: true

Size: 250 Bytes

Versions: 5

Compression:

Stored size: 250 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.should == '&lt;form&gt;form'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roda-2.2.0 spec/plugin/h_spec.rb
roda-2.1.0 spec/plugin/h_spec.rb
roda-2.0.0 spec/plugin/h_spec.rb
roda-1.3.0 spec/plugin/h_spec.rb
roda-1.2.0 spec/plugin/h_spec.rb