Sha256: 734be79ec1df1ce97d2c30bfc3e544fb12df9bb783b80f7c31221fb9094ccf07

Contents?: true

Size: 525 Bytes

Versions: 36

Compression:

Stored size: 525 Bytes

Contents

require_relative '../../app/presenters/profile_section_presenter'
require_relative '../../app/presenters/profile_link_presenter'
require_relative '../../app/presenters/theme_presentation'

describe ProfileSectionPresenter do
  describe "#links" do
    it "wraps each item in the profile link presenter" do
      stubbed = stub(name: nil, url: nil)
      section = [stubbed]

      ProfileSectionPresenter.new(section).links.each do |item|
        item.wrapped_by.should eq([ProfileLinkPresenter])
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
woople-theme-0.8.1 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.8.0 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.27 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.26 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.25 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.24 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.23 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.22 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.21 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.20 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.19 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.18 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.17 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.14 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.13 spec/presenters/profile_section_presenter_spec.rb
woople-theme-0.6.12 spec/presenters/profile_section_presenter_spec.rb