mirror of
https://github.com/Homebrew/brew.git
synced 2026-08-12 22:29:27 +04:00
Cleanup test-prof workarounds
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -9,6 +9,4 @@ Warnings.ignore :parser_syntax do
|
||||
require "rubocop"
|
||||
end
|
||||
|
||||
require "rubocop/test_prof"
|
||||
|
||||
exit RuboCop::CLI.new.run
|
||||
|
||||
Reference in New Issue
Block a user