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

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true require 'spec_helper' describe "Alternate Controller Behaviors" do - it "should have the correct per-page form" do + it "has the correct per-page form" do visit search_alternate_path expect(page).to have_selector("form[action='#{search_alternate_url}']") fill_in "q", :with=>"history" click_button 'search' expect(current_path).to match /#{search_alternate_path}/ @@ -12,20 +12,20 @@ click_on '10 per page' end expect(current_path).to match /#{search_alternate_path}/ end - it "should have the correct search field form" do + it "has the correct search field form" do visit search_alternate_path expect(page).to have_selector("form[action='#{search_alternate_url}']") fill_in "q", :with=>"history" click_button 'search' expect(current_path).to match /#{search_alternate_path}/ click_on 'relevance' expect(current_path).to match /#{search_alternate_path}/ end - it "should display document thumbnails" do + it "displays document thumbnails" do visit search_alternate_path expect(page).to have_selector("form[action='#{search_alternate_url}']") fill_in "q", :with=>"history" click_button 'search' expect(page).to have_selector ".document-thumbnail"