Skip to content

Commit acd2ad2

Browse files
committed
Merge pull request #15 from chrishunt/move-version-to-acceptance
Move --version test to acceptance
2 parents d03fab3 + 37eff25 commit acd2ad2

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

spec/acceptance/github/auth/cli_spec.rb

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

4444
expect(output).to include('chrishunt')
4545
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+
end
4654
end
4755
end

spec/unit/github/auth/cli_spec.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,5 @@
3838
subject.execute
3939
end
4040
end
41-
42-
context 'with the --version command' do
43-
let(:argv) { ['--version'] }
44-
45-
it 'prints version information' do
46-
subject.should_receive(:print_version)
47-
subject.execute
48-
end
49-
end
5041
end
5142
end

0 commit comments

Comments
 (0)