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 21, 2023
1 parent 5616e9a commit 3fb0942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/requests/new_admin/notes_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_note) { create(:note, title: 'Foo') }
let!(:bar_note) { create(:note, title: 'Bar') }
let!(:bar_note) { create(:note, title: 'weird title') }

it 'returns only the filtered notes', :aggregate_failures do
get new_admin_notes_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 3fb0942

Please sign in to comment.