test/integration/cli/command/console_test.rb in inch-0.6.4 vs test/integration/cli/command/console_test.rb in inch-0.7.0

- old
+ new

@@ -10,9 +10,15 @@ before do Dir.chdir fixture_path(:ruby, :simple) @command = ::Inch::CLI::Command::Console 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 output info when run with --help' do out, err = capture_io do assert_raises(SystemExit) { @command.run('--help') } end refute out.empty?, 'there should be some output'