Cleanup test-prof workarounds

This commit is contained in:
Rylan Polster
2026-02-28 15:00:30 -05:00
parent 27ae83891d
commit 23c9fc3da8
2 changed files with 1 additions and 10 deletions
+1 -8
View File
@@ -19,14 +19,7 @@ RSpec.describe "RuboCop" do
end
it "loads all Formula cops without errors" do
stdout, stderr, status = Open3.capture3(
RUBY_PATH, "-W0", "-S", "rubocop", TEST_FIXTURE_DIR/"testball.rb",
# Require "sorbet-runtime" to bring T into scope for warnings.rb
"-r", "sorbet-runtime",
# Require "extend/module" to include T::Sig in Module for warnings.rb
"-r", HOMEBREW_LIBRARY_PATH/"extend/module.rb",
"-r", "rubocop/test_prof"
)
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
-2
View File
@@ -9,6 +9,4 @@ Warnings.ignore :parser_syntax do
require "rubocop"
end
require "rubocop/test_prof"
exit RuboCop::CLI.new.run