Sha256: 3d6840c4737761ce82a07193800c50fd1d1016df79ced06c6565bbf03eac6ba8

Contents?: true

Size: 435 Bytes

Versions: 7

Compression:

Stored size: 435 Bytes

Contents

describe :tag do

  it "raises Invalid if tag starts w/ a number" do
    should.raise(Escape_Escape_Escape::Invalid) {
      actual do
        div.id('0a') { 'hello' }
      end
    }.message.should.match /0a/
  end

  it "raises Invalid if tag is unknown: e.g. :footers" do
    should.raise(StandardError) {
      actual do
        footers { 'bye' }
      end
    }.message.should.match /footers/
  end

end # === describe :tag ===

Version data entries

7 entries across 7 versions & 1 rubygems

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