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

Version Path
refinerycms-pages-2.1.5 spec/presenters/refinery/pages/title_section_presenter_spec.rb
refinerycms-pages-2.1.4 spec/presenters/refinery/pages/title_section_presenter_spec.rb
refinerycms-pages-2.1.3 spec/presenters/refinery/pages/title_section_presenter_spec.rb
refinerycms-pages-2.1.2 spec/presenters/refinery/pages/title_section_presenter_spec.rb
refinerycms-pages-2.1.1 spec/presenters/refinery/pages/title_section_presenter_spec.rb
refinerycms-pages-2.1.0 spec/presenters/refinery/pages/title_section_presenter_spec.rb
refinerycms-pages-2.0.10 spec/lib/pages/title_section_presenter_spec.rb
refinerycms-pages-2.0.9 spec/lib/pages/title_section_presenter_spec.rb
refinerycms-pages-2.0.8 spec/lib/pages/title_section_presenter_spec.rb
refinerycms-pages-2.0.7 spec/lib/pages/title_section_presenter_spec.rb
refinerycms-pages-2.0.6 spec/lib/pages/title_section_presenter_spec.rb
refinerycms-pages-2.0.5 spec/lib/pages/title_section_presenter_spec.rb
refinerycms-pages-2.0.4 spec/lib/pages/title_section_presenter_spec.rb
refinerycms-page-menus-2.0.3 spec/lib/pages/title_section_presenter_spec.rb
refinerycms-pages-2.0.3 spec/lib/pages/title_section_presenter_spec.rb
refinerycms-pages-2.0.2 spec/lib/pages/title_section_presenter_spec.rb
refinerycms-pages-2.0.1 spec/lib/pages/title_section_presenter_spec.rb
refinerycms-pages-2.0.0 spec/lib/pages/title_section_presenter_spec.rb