Sha256: 7a42f8db350550e4007b4be8ec13b82cbadb3588de8586f66b976c7a3cc9be8b

Contents?: true

Size: 440 Bytes

Versions: 6

Compression:

Stored size: 440 Bytes

Contents

describe :tag do

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

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

end # === describe :tag ===

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
www_app-1.3.0 specs/server-side/0020-tag.rb
www_app-1.2.1 specs/server-side/0020-tag.rb
www_app-1.2.0 specs/server-side/0020-tag.rb
www_app-1.1.0 specs/server-side/0020-tag.rb
www_app-1.0.1 specs/as_ruby/0020-tag.rb
www_app-1.0.0 specs/as_ruby/0020-tag.rb