Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
fixing intermitent test
Browse files Browse the repository at this point in the history
  • Loading branch information
nehamand committed Dec 27, 2023
1 parent 9c496bc commit aa2b5b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/requests/new_admin/questionnaires_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@

context 'when title filter is applied' do
let!(:foo_questionnaire) { create(:questionnaire, title: 'Foo') }
let!(:bar_questionnaire) { create(:questionnaire, title: 'Bar') }
let!(:bar_questionnaire) { create(:questionnaire, title: 'Weird title') }

it 'returns only the filtered questionnaires', :aggregate_failures do
get new_admin_questionnaires_path, params: { title: 'foo' }

expect(response.body).to include('Foo')
expect(response.body).not_to include('Bar')
expect(response.body).not_to include('Weird title')
end
end

Expand Down

0 comments on commit aa2b5b8

Please sign in to comment.