Skip to content

Commit 6cd918a

Browse files
author
Chris Hunt
committed
Test that KeysFile does not begin with blank line
1 parent 5a6d838 commit 6cd918a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

spec/unit/github/auth/keys_file_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
end
5050
end
5151

52+
it 'does not include a blank before the first key' do
53+
subject.write! keys
54+
55+
expect(keys_file.read).to_not start_with("\n")
56+
end
57+
5258
it 'includes a newline after the last key' do
5359
subject.write! keys
5460

0 commit comments

Comments
 (0)