Skip to content

Commit

Permalink
Add test for whitespace-only lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoythal committed Feb 24, 2023
1 parent 8dd7db6 commit d4ec64b
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,17 @@
expect(manifest).to eq(fixed)
end
end

context 'empty line with nothing but whitespace' do
let(:code) { " \n " }

it 'only detects a single problem' do
expect(problems).to have(2).problem
end

it 'fixes the manifest' do
expect(manifest).to eq("\n")
end
end
end
end

0 comments on commit d4ec64b

Please sign in to comment.