Skip to content

Commit

Permalink
Fix RequestController transient spec failure
Browse files Browse the repository at this point in the history
Ensure the Xapian index in the test environment is built and ready for
this controller actions to be tested.

Fixes #8561
  • Loading branch information
gbp committed Feb 3, 2025
1 parent 14d738f commit 8b22d98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/controllers/request_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
end

RSpec.describe RequestController, "when listing recent requests" do
before { update_xapian_index }

it "should be successful" do
get :list, params: { view: 'all' }
expect(response).to be_successful
Expand Down Expand Up @@ -63,7 +65,6 @@
end

it 'sets title based on if tag does not match an request category' do
update_xapian_index
get :list, params: { view: 'all', tag: 'other' }
expect(assigns[:title]).to eq('Found 0 requests tagged ‘other’')

Expand Down

0 comments on commit 8b22d98

Please sign in to comment.