Sha256: e3fb6634bd37ee7a6e2c925907babd5e2602b24047985e6c826926b6720f5c16

Contents?: true

Size: 777 Bytes

Versions: 23

Compression:

Stored size: 777 Bytes

Contents

require "rails_helper.rb"

describe "manifestations/index" do
  before(:each) do
    @manifestations = assign(:manifestations,
      Kaminari.paginate_array( [
        FactoryBot.create(:manifestation),
      ], total_count: 1).page(1)
    )
    @index_agent = {}
    @count = { query_result: 1 }
    @reservable_facet = @carrier_type_facet = @language_facet = @library_facet = @pub_year_facet = []
    @seconds = 0
    @max_number_of_results = 500
    view.stub(:filtered_params).and_return(ActionController::Parameters.new(per_page: 50).permit(:per_page))
  end

  describe "sort_by menu" do
    it "should reflect per_page params for views" do
      render
      expect(rendered).to have_selector "select#per_page option[value='50'][selected='selected']"
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
enju_biblio-0.3.12 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.11 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.10 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.10.rc.3 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.10.rc.2 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.10.rc.1 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.9 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.4.0.rc.1 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.8 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.7 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.6 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.4.0.beta.2 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.4.0.beta.1 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.5 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.4 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.3 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.2 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.1 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.0 spec/views/manifestations/index.html.erb_spec.rb
enju_biblio-0.3.0.rc.1 spec/views/manifestations/index.html.erb_spec.rb