test/integration/cli/command/stats_test.rb in inch-0.6.4 vs test/integration/cli/command/stats_test.rb in inch-0.7.0
- old
+ new
@@ -4,9 +4,15 @@
before do
Dir.chdir fixture_path(:ruby, :simple)
@command = ::Inch::CLI::Command::Stats
end
+ it 'should run with exit status' do
+ _out, _err = capture_io do
+ assert_equal @command.run.exit_status, @command::EXIT_STATUS_SUCCESS
+ end
+ end
+
it 'should run without args' do
out, err = capture_io do
@command.run
end
refute out.empty?, 'there should be some output'