Skip to content

Commit

Permalink
Turn on disable_monkey_patching
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg authored and MikeMcQuaid committed Feb 19, 2024
1 parent ab8f570 commit d7ebf97
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/test/cask/download_spec.rb
Original file line number Diff line number Diff line change
@@ -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) }

Expand Down
4 changes: 2 additions & 2 deletions Library/Homebrew/test/dev-cmd/audit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def self.increment
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
Expand Down Expand Up @@ -56,7 +56,7 @@ class #{Formulary.class_s(name)} < Formula
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" }
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/test/formula_free_port_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require "formula_free_port"

module Homebrew
describe FreePort do
RSpec.describe FreePort do
include described_class

describe "#free_port" do
Expand Down
4 changes: 2 additions & 2 deletions Library/Homebrew/test/rubocops/shell_commands_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module RuboCop
module Cop
module Homebrew
describe ShellCommands do
::RSpec.describe ShellCommands do
subject(:cop) { described_class.new }

context "when auditing shell commands" do
Expand Down Expand Up @@ -213,7 +213,7 @@ def install
end
end

describe ExecShellMetacharacters do
::RSpec.describe ExecShellMetacharacters do
subject(:cop) { described_class.new }

context "when auditing exec calls" do
Expand Down
1 change: 1 addition & 0 deletions Library/Homebrew/test/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@

config.raise_errors_for_deprecations!
config.warnings = true
config.disable_monkey_patching!

config.filter_run_when_matching :focus

Expand Down

0 comments on commit d7ebf97

Please sign in to comment.