diff --git a/Library/Homebrew/test/abstract_command_spec.rb b/Library/Homebrew/test/abstract_command_spec.rb index 6a4d0ccd6c..410cfc4107 100644 --- a/Library/Homebrew/test/abstract_command_spec.rb +++ b/Library/Homebrew/test/abstract_command_spec.rb @@ -49,7 +49,7 @@ RSpec.describe Homebrew::AbstractCommand do describe "when command name is overridden" do before do tac = Class.new(described_class) do - self.define_singleton_method(:command_name) { "t-a-c" } + define_singleton_method(:command_name) { "t-a-c" } define_method(:run) do nil end