Skip to content

Commit 19eb327

Browse files
committed
fix: make it so command-line-test script runs in Windows
1 parent 7fb57c5 commit 19eb327

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ require 'command_line_boss'
2020
#
2121
# Examples:
2222
# Output "Hello, world!" to stdout and exit with status 0
23-
# $ bin/command_line_test --stdout="Hello, world!" --exitstatus=0
23+
# $ bin/command-line-test --stdout="Hello, world!" --exitstatus=0
2424
#
2525
# Output "ERROR: timeout" to stderr and exit with status 1
26-
# $ bin/command_line_test --stderr="ERROR: timeout" --exitstatus=1
26+
# $ bin/command-line-test --stderr="ERROR: timeout" --exitstatus=1
2727
#
2828
# Output "Fatal: killed by parent" to stderr and signal 9
29-
# $ bin/command_line_test --stderr="Fatal: killed by parent" --signal=9
29+
# $ bin/command-line-test --stderr="Fatal: killed by parent" --signal=9
3030
#
3131
# Output to both stdout and stderr return default exitstatus 0
32-
# $ bin/command_line_test --stdout="Hello, world!" --stderr="ERROR: timeout"
32+
# $ bin/command-line-test --stdout="Hello, world!" --stderr="ERROR: timeout"
3333
#
3434

3535
# The command line parser for this script

spec/lib/ruby_git/command_line/runner_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
'MYVAR2' => 'myvar2_value'
1010
}
1111
end
12-
let(:binary_path) { 'bin/command_line_test' }
13-
let(:global_options) { {} }
12+
let(:binary_path) { 'ruby' }
13+
let(:global_options) { ['bin/command-line-test'] }
1414
let(:logger) { Logger.new(nil) }
1515

1616
describe '#initialize' do
@@ -36,8 +36,8 @@
3636
'MYVAR1' => 'myvar1_value',
3737
'MYVAR2' => 'myvar2_value'
3838
}
39-
binary_path = 'bin/command_line_test'
40-
global_options = ['--env-var', 'MYVAR1']
39+
binary_path = 'ruby'
40+
global_options = ['bin/command-line-test', '--env-var', 'MYVAR1']
4141
args = [
4242
'--stdout', 'stdout output',
4343
'--stderr', 'stderr output'
@@ -62,8 +62,8 @@
6262

6363
let(:result) { runner.call(*command_line_test_args, **options) }
6464
let(:env) { {} }
65-
let(:binary_path) { 'bin/command_line_test' }
66-
let(:global_options) { [] }
65+
let(:binary_path) { 'ruby' }
66+
let(:global_options) { ['bin/command-line-test'] }
6767
let(:options) { { raise_git_errors:, timeout_after:, chomp: } }
6868
let(:raise_git_errors) { true }
6969
let(:timeout_after) { nil }

0 commit comments

Comments
 (0)