Sha256: ee0d4671af86cd3b5c60bfadfb74dc5de84057e607921207ea1ed9b3a8288c33

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

describe :heading_tags do

  [:h1, :h2, :h3, :h4].each { |meth|
    it "renders a :#{meth} tag" do
      target :body, <<-EOF
        <#{meth}>Title</#{meth}>
      EOF

      actual {
        send(meth) { 'Title' }
      }
    end # === it renders a .... tag

    it "accepts a String argument" do
      target :body, <<-EOF
        <#{meth}>Title Title</#{meth}>
      EOF

      actual {
        send(meth, 'Title Title')
      }
    end # === it accepts a String argument
  }

end # === describe :heading_tags

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
www_app-2.3.0 specs/server-side/0070-heading_tags.rb