Sha256: a82cf042a757c126c674fe7409a1f91bd2e77591e8a4dc891e6c963ede3ee185

Contents?: true

Size: 447 Bytes

Versions: 7

Compression:

Stored size: 447 Bytes

Contents

describe "all attrs" do

  it "raises a RuntimeError if tag has an invalid attribute" do
    should.raise(RuntimeError) {
      actual {
        a.href('/href').src('file') {
          "here"
        }
      }
    }.message.should.match /:src not allowed to be set here/
  end

  it "escapes attributes" do
    target %^<a rel="&lt;hello">hello</a>^
    actual {
      a.rel('<hello') { 'hello' }
    }
  end

end # === describe all attrs







Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
www_app-2.3.0 specs/server-side/0010-attrs.rb
www_app-2.1.3 specs/server-side/0010-attrs.rb
www_app-2.1.1 specs/server-side/0010-attrs.rb
www_app-2.1.0 specs/server-side/0010-attrs.rb
www_app-2.0.2 specs/server-side/0010-attrs.rb
www_app-2.0.1 specs/server-side/0010-attrs.rb
www_app-2.0.0 specs/server-side/0010-attrs.rb