Skip to content

Commit

Permalink
Merge pull request #412 from ruby/skip-tests-invoking-ruby
Browse files Browse the repository at this point in the history
To let the tests run during CI of ruby/ruby
  • Loading branch information
soutaro authored Oct 9, 2020
2 parents 931ebe2 + 497dfc0 commit 48cbcbb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/rbs/cli_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,12 @@ def foo: () -> void
RBS

with_cli do |cli|
# Assumes there is `ls` command.
assert_rbs_test_no_errors(cli, dir, %w(--target ::Foo ls))

assert_raises(SystemExit) { cli.run(%w(test)) }
assert_raises(SystemExit) { cli.run(%W(-I #{dir} test)) }
assert_raises(SystemExit) { cli.run(%W(-I #{dir} test --target ::Foo)) }

assert_rbs_test_no_errors(cli, dir, %w(--target ::Foo ls))
assert_rbs_test_no_errors(cli, dir, %w(--target ::Bar ruby -v))
assert_rbs_test_no_errors(cli, dir, %w(--target Bar::Baz rbs version))
assert_rbs_test_no_errors(cli, dir, %w(--target ::Bar::Baz rake -T))
assert_rbs_test_no_errors(cli, dir, %w(--target ::Foo --target Bar::* rbs test --target ::Bar::Baz rbs version))
end
end
end
Expand Down

0 comments on commit 48cbcbb

Please sign in to comment.