Sha256: 59483b7dde9d3199086cb4820168a2ce522bdf6233e8f21ce383ad1cb58a76f6

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

describe "page_title" do

  it "creates only one :title tag" do
    html = WWW_App.new {
      title { 'yo' }
    }.to_html

    html.scan(/<title>[^>]+<\/title>/).
    should == ['<title>yo</title>']
  end # === it creates on :title tag

  it "accepts a String argument" do
    html = WWW_App.new {
      title 'yo yo string'
    }.to_html

    html.scan(/<title>[^>]+<\/title>/).
    should == ['<title>yo yo string</title>']
  end # === it accepts a String argument

end # === describe "page_title"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
www_app-2.3.0 specs/server-side/0021-title.rb