require 'test_helper'

describe SecondLevelBrowsePage do
  describe '#title' do
    it 'delegates to the browse page' do
      content_store_has_item('/browse/foo/bar', { title: 'Foo Bar' })

      page = SecondLevelBrowsePage.new('foo', 'bar')

      assert_equal page.title, 'Foo Bar'
    end
  end
end

Add unit test for page titles
Add unit test for page titles

This adds a simple test for the title of the second level browse page.
Tests for the other page models can be implemented after changing over
to content-store for the source.
