spec/features/search_pagination_spec.rb in blacklight-6.2.0 vs spec/features/search_pagination_spec.rb in blacklight-6.3.0

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true require 'spec_helper' describe "Search Pagination" do - it "should have results with pagination" do + it "has results with pagination" do visit root_path fill_in "q", with: '' click_button 'search' within ("#sortAndPerPage") do expect(page).to have_content "1 - 10 of " @@ -26,11 +26,11 @@ within "#sortAndPerPage" do expect(page).to have_content "1 - 10 of " end end - it "should be able to change the number of items per page" do + it "is able to change the number of items per page" do visit root_path fill_in "q", with: '' click_button 'search' within ("#sortAndPerPage") do expect(page).to have_content "1 - 10 of " @@ -53,11 +53,11 @@ end after do CatalogController.blacklight_config[:per_page] = original_per_page CatalogController.blacklight_config[:default_solr_params][:rows] = original_rows end - it "should use the configured values" do + it "uses the configured values" do visit root_path fill_in "q", with: '' click_button 'search' within ("#sortAndPerPage") do expect(page).to have_content "1 - 15 of " @@ -73,10 +73,10 @@ expect(page).to have_content "1 - 30 of " end end end - it "should reset the page offset to 1 when changing per page" do + it "resets the page offset to 1 when changing per page" do visit root_path fill_in "q", with: '' click_button 'search' within "#sortAndPerPage" do click_link "Next ยป"