Skip to content

Commit

Permalink
add test for when no search text is found when searching yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
alex501212 committed Feb 19, 2025
1 parent 78b57ae commit eb547da
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@
expect(problems.size).to eq(2)
end
end

context 'when no search text is found' do
let(:code) { '' }

it 'does not detect any problems' do
expect(problems).to be_empty
end
end
end
end

Expand Down

0 comments on commit eb547da

Please sign in to comment.