Sha256: d0fa0abda050c918e70ebbb3cbfd4dc234bea6a26a62cb40f7932e829aad9a14

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 Bytes

Contents

require 'spec_helper'
require 'features_shared'

RSpec.describe 'front_pages_for_title' do
  include_context "fixtures_for_features"

  # @title1 comes from fixtures_for_features
  before do
    visit hyrax_newspaper_title_path(@title1.id)
    click_link('front_pages_search')
  end

  it 'returns the front pages' do
    within "#search-results" do
      expect(page).to have_content "#{title1_issue1_title_memo}: Page 1"
      expect(page).not_to have_content "#{title1_issue1_title_memo}: Page 2"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newspaper_works-1.0.1 spec/features/front_pages_for_title_spec.rb
newspaper_works-1.0.0 spec/features/front_pages_for_title_spec.rb
newspaper_works-0.1.0 spec/features/front_pages_for_title_spec.rb