Skip to content

Commit 4dd6f26

Browse files
author
Chris Hunt
committed
Fix shared example; use #delete instead of #write
1 parent 538d65f commit 4dd6f26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/unit/github/auth/keys_file_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
end
160160

161161
it 'includes a newline after the last key' do
162-
subject.write! keys
162+
subject.delete! key
163163

164164
expect(keys_file.read).to end_with("\n")
165165
end

0 commit comments

Comments
 (0)