spec/features/alternate_controller_spec.rb in blacklight-7.0.0.rc1 vs spec/features/alternate_controller_spec.rb in blacklight-7.0.0.rc2
- old
+ new
@@ -2,11 +2,11 @@
RSpec.describe "Alternate Controller Behaviors" 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"
+ fill_in "q", with: "history"
click_button 'search'
expect(current_path).to match /#{search_alternate_path}/
within "#per_page-dropdown .dropdown-menu" do
click_on '10 per page'
end
@@ -14,20 +14,20 @@
end
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"
+ 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 "displays document thumbnails" do
visit search_alternate_path
expect(page).to have_selector("form[action='#{search_alternate_url}']")
- fill_in "q", :with=>"history"
+ fill_in "q", with: "history"
click_button 'search'
expect(page).to have_selector ".document-thumbnail"
expect(page).to have_selector ".document-thumbnail a[data-context-href]"
expect(page).to have_selector ".document-thumbnail a img"
end