Skip to content

Commit ff96e83

Browse files
authored
Merge pull request #2001 from nobu/cli_test-command
Fix the portability of an external command
2 parents 956d9a0 + 14ea43f commit ff96e83

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)