Suppress parser warnings.

This commit is contained in:
Markus Reiter 2020-12-02 10:38:12 +01:00
parent 4b3e913937
commit 75f8d4b3a6

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