Skip to content

Commit 5d194da

Browse files
committed
Add a spec for the changelog file format
Follow up to rubocop/rubocop#10237.
1 parent 85deceb commit 5d194da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/project_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@
189189
expect(entries).to all(match(/\(\[@\S+\]\[\](?:, \[@\S+\]\[\])*\)$/))
190190
end
191191

192+
it 'has a single line' do
193+
expect(File.foreach(path).count).to eq(1)
194+
end
195+
192196
it 'starts with `new_`, `fix_`, or `change_`' do
193197
expect(File.basename(path)).to(match(/\A(new|fix|change)_.+/))
194198
end

0 commit comments

Comments
 (0)