Sha256: d12d3f45f8fe50a121e3c2865a649f503879736cf6ec60b3104e05f8f776a1d3
Contents?: true
Size: 596 Bytes
Versions: 3
Compression:
Stored size: 596 Bytes
Contents
require 'spec_helper' RSpec.describe 'hyrax/newspaper_titles/_all_front_pages_form.html.erb', type: :view do let(:presenter) { double } before do allow(presenter).to receive(:front_page_search_params).and_return(f: { "publication_title_ssi" => ["Wall Street Journal"], "first_page_bsi" => [true] }) assign(:presenter, presenter) render end let(:page) { Capybara::Node::Simple.new(rendered) } it "has a link to the front pages view" do expect(page).to have_link("View all front pages", href: main_app.search_catalog_path(presenter.front_page_search_params)) end end
Version data entries
3 entries across 3 versions & 1 rubygems