Merge pull request #9377 from reitermarkus/parser-warnings

Suppress `parser` warnings.
This commit is contained in:
Markus Reiter 2020-12-02 11:22:06 +01:00 committed by GitHub
commit cf70a511bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ describe "RuboCop" do
end
it "loads all Formula cops without errors" do
stdout, stderr, status = Open3.capture3("rubocop", TEST_FIXTURE_DIR/"testball.rb")
stdout, stderr, status = Open3.capture3(RUBY_PATH, "-W0", "-S", "rubocop", TEST_FIXTURE_DIR/"testball.rb")
expect(stderr).to be_empty
expect(stdout).to include("no offenses detected")
expect(status).to be_a_success