Skip to content

Commit 14ea43f

Browse files
committed
Fix the portability of an external command
`ls` is a very common command on UNIX-like platforms, but not on DOSish platforms.
1 parent 6ea40c4 commit 14ea43f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/rbs/cli_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,8 +1092,8 @@ def foo: () -> void
10921092
RBS
10931093

10941094
with_cli do |cli|
1095-
# Assumes there is `ls` command.
1096-
assert_rbs_test_no_errors(cli, dir, %w(--target ::Foo ls))
1095+
# `exit` is a common shell built-in command.
1096+
assert_rbs_test_no_errors(cli, dir, %w(--target ::Foo exit))
10971097

10981098
assert_raises(SystemExit) { cli.run(%w(test)) }
10991099
assert_raises(SystemExit) { cli.run(%W(-I #{dir} test)) }

0 commit comments

Comments
 (0)