Sha256: 1d2cdae9e1956b7a11844614ddf3e7a41f6c66536150dc2801d9305e47de7164

Contents?: true

Size: 276 Bytes

Versions: 15

Compression:

Stored size: 276 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|
      r.on do
        h("<form>") + h(:form)
      end
    end

    body.should == '&lt;form&gt;form'
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
roda-1.1.0 spec/plugin/h_spec.rb
roda-cj-1.0.5 spec/plugin/h_spec.rb
roda-cj-1.0.4 spec/plugin/h_spec.rb
roda-cj-1.0.3 spec/plugin/h_spec.rb
roda-cj-1.0.2 spec/plugin/h_spec.rb
roda-cj-1.0.1 spec/plugin/h_spec.rb
roda-cj-1.0.0 spec/plugin/h_spec.rb
roda-1.0.0 spec/plugin/h_spec.rb
roda-cj-0.9.6 spec/plugin/h_spec.rb
roda-cj-0.9.5 spec/plugin/h_spec.rb
roda-cj-0.9.4 spec/plugin/h_spec.rb
roda-cj-0.9.3 spec/plugin/h_spec.rb
roda-cj-0.9.2 spec/plugin/h_spec.rb
roda-cj-0.9.1 spec/plugin/h_spec.rb
roda-0.9.0 spec/plugin/h_spec.rb