Turn on disable_monkey_patching

This commit is contained in:
Douglas Eichelberger 2024-02-18 15:17:25 -08:00 committed by Mike McQuaid
parent ab8f5702ac
commit d7ebf97467
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
5 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
module Cask
describe Download, :cask do
RSpec.describe Download, :cask do
describe "#verify_download_integrity" do
subject(:verification) { described_class.new(cask).verify_download_integrity(downloaded_path) }

View File

@ -17,7 +17,7 @@ module Count
end
module Homebrew
describe FormulaTextAuditor do
RSpec.describe FormulaTextAuditor do
alias_matcher :have_data, :be_data
alias_matcher :have_end, :be_end
alias_matcher :have_trailing_newline, :be_trailing_newline
@ -56,7 +56,7 @@ module Homebrew
end
end
describe FormulaAuditor do
RSpec.describe FormulaAuditor do
let(:dir) { mktmpdir }
let(:foo_version) { Count.increment }
let(:formula_subpath) { "Formula/foo#{foo_version}.rb" }

View File

@ -4,7 +4,7 @@ require "socket"
require "formula_free_port"
module Homebrew
describe FreePort do
RSpec.describe FreePort do
include described_class
describe "#free_port" do

View File

@ -5,7 +5,7 @@ require "rubocops/shell_commands"
module RuboCop
module Cop
module Homebrew
describe ShellCommands do
::RSpec.describe ShellCommands do
subject(:cop) { described_class.new }
context "when auditing shell commands" do
@ -213,7 +213,7 @@ module RuboCop
end
end
describe ExecShellMetacharacters do
::RSpec.describe ExecShellMetacharacters do
subject(:cop) { described_class.new }
context "when auditing exec calls" do

View File

@ -67,6 +67,7 @@ RSpec.configure do |config|
config.raise_errors_for_deprecations!
config.warnings = true
config.disable_monkey_patching!
config.filter_run_when_matching :focus