test/abstract_command_spec: fix Style/RedundantSelf error

This commit is contained in:
Carlo Cabrera 2025-07-12 04:53:45 +08:00 committed by Carlo Cabrera
parent 25d8714c02
commit d5b335a977
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -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