Sha256: 5b4f2afb43816b9d0cbb5711739954b5f2bba94938976bf9ef582000267ea6b4
Contents?: true
Size: 708 Bytes
Versions: 18
Compression:
Stored size: 708 Bytes
Contents
require "spec_helper" module Refinery module Pages describe TitleSectionPresenter do describe "when building html for a section" do it "wraps a title section in a title element" do section = TitleSectionPresenter.new(:fallback_html => 'foobar') section.has_content?(true).should be_true section.wrapped_html(true).should == '<h1>foobar</h1>' end it "will use the specified id" do section = TitleSectionPresenter.new(:fallback_html => 'foobar', :id => 'mynode') section.has_content?(true).should be_true section.wrapped_html(true).should == '<h1 id="mynode">foobar</h1>' end end end end end
Version data entries
18 entries across 18 versions & 2 rubygems