We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d03fab3 + 37eff25 commit acd2ad2Copy full SHA for acd2ad2
2 files changed
spec/acceptance/github/auth/cli_spec.rb
@@ -43,5 +43,13 @@ def cli(argv)
43
44
expect(output).to include('chrishunt')
45
end
46
+
47
+ it 'prints version information' do
48
+ output = capture_stdout do
49
+ cli(%w(--version)).execute
50
+ end
51
52
+ expect(output).to include Github::Auth::VERSION
53
54
55
spec/unit/github/auth/cli_spec.rb
@@ -38,14 +38,5 @@
38
subject.execute
39
40
41
-
42
- context 'with the --version command' do
- let(:argv) { ['--version'] }
- it 'prints version information' do
- subject.should_receive(:print_version)
- subject.execute
- end
0 commit comments