Sha256: ad7f6f2dae26a4a2fa1239e91b9b33dd78ae324d7e248fb824204c737f4024cb

Contents?: true

Size: 593 Bytes

Versions: 3

Compression:

Stored size: 593 Bytes

Contents

require 'spec_helper'

RSpec.describe NewspaperWorks::NewspapersSearchController do
  describe 'GET "search"' do
    before { get :search }

    it 'renders the page' do
      expect(response).to be_successful
      expect(response).to render_template('newspaper_works/newspapers_search/search')
    end

    it 'sets the @response' do
      expect(assigns(:response)).to be_a_kind_of(Blacklight::Solr::Response)
    end
  end

  describe '#search_builder_class' do
    subject { controller.search_builder_class }
    it { is_expected.to eq NewspaperWorks::NewspapersSearchBuilder }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newspaper_works-1.0.1 spec/controllers/newspaper_works/newspapers_search_controller_spec.rb
newspaper_works-1.0.0 spec/controllers/newspaper_works/newspapers_search_controller_spec.rb
newspaper_works-0.1.0 spec/controllers/newspaper_works/newspapers_search_controller_spec.rb