Skip to content

Commit f18fd8d

Browse files
author
Chris Hunt
committed
Move usage tests to acceptance
1 parent 53118cd commit f18fd8d

2 files changed

Lines changed: 8 additions & 42 deletions

File tree

spec/acceptance/github/auth/cli_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,13 @@ def cli(argv)
5151

5252
expect(output).to include Github::Auth::VERSION
5353
end
54+
55+
it 'prints usage for invalid arguments' do
56+
[[], %w(invalid), %w(add)].each do |invalid_arguments|
57+
expect(
58+
capture_stdout { cli(invalid_arguments).execute }
59+
).to include 'usage: gh-auth'
60+
end
61+
end
5462
end
5563
end

spec/unit/github/auth/cli_spec.rb

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)