Skip to content

Commit

Permalink
Merge pull request #2001 from nobu/cli_test-command
Browse files Browse the repository at this point in the history
Fix the portability of an external command
  • Loading branch information
soutaro committed Sep 13, 2024
2 parents 6ea40c4 + 14ea43f commit 435a79f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/rbs/cli_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1092,8 +1092,8 @@ def foo: () -> void
RBS

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

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

0 comments on commit 435a79f

Please sign in to comment.