Skip to content

Commit

Permalink
Stub blacklight_config in view test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Sep 20, 2024
1 parent e19cfee commit 5526952
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/views/shared/_header_navbar.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

describe 'shared/_header_navbar', type: :view do
before do
allow(view).to receive(:blacklight_config).and_return(Blacklight.default_configuration)
stub_template 'shared/_user_util_links.html.erb' => 'links'
end

Expand Down
1 change: 1 addition & 0 deletions spec/views/spotlight/pages/show.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

before do
allow(view).to receive(:current_exhibit).and_return(exhibit)
allow(view).to receive(:blacklight_config).and_return(Blacklight.default_configuration)
allow(view).to receive(:render_body_class).and_return('')
assign(:page, page)
stub_template 'spotlight/pages/_sidebar.html.erb' => 'Sidebar'
Expand Down

0 comments on commit 5526952

Please sign in to comment.