Skip to content

Commit 3bdc5bf

Browse files
authored
Merge pull request #22415 from Homebrew/even-described-class-alternatives-are-still-bad-for-sorbet-sometimes
tests: Use full constant names sometimes (for Sorbet rule 5001 compat)
2 parents 10a163a + d011673 commit 3bdc5bf

31 files changed

Lines changed: 141 additions & 135 deletions

Library/Homebrew/test/api/cask_struct_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# typed: false
1+
# typed: true
22
# frozen_string_literal: true
33

44
require "api"
@@ -175,19 +175,19 @@
175175
.to eq([:foo, [], { ghi: "jkl" }, nil])
176176

177177
expect(klass.deserialize_artifact_args([:foo, :empty_block]))
178-
.to eq([:foo, [], {}, klass::EMPTY_BLOCK])
178+
.to eq([:foo, [], {}, Homebrew::API::CaskStruct::EMPTY_BLOCK])
179179

180180
expect(klass.deserialize_artifact_args([:foo, ["abc", "def"], { ghi: "jkl" }]))
181181
.to eq([:foo, ["abc", "def"], { ghi: "jkl" }, nil])
182182

183183
expect(klass.deserialize_artifact_args([:foo, ["abc", "def"], :empty_block]))
184-
.to eq([:foo, ["abc", "def"], {}, klass::EMPTY_BLOCK])
184+
.to eq([:foo, ["abc", "def"], {}, Homebrew::API::CaskStruct::EMPTY_BLOCK])
185185

186186
expect(klass.deserialize_artifact_args([:foo, { ghi: "jkl" }, :empty_block]))
187-
.to eq([:foo, [], { ghi: "jkl" }, klass::EMPTY_BLOCK])
187+
.to eq([:foo, [], { ghi: "jkl" }, Homebrew::API::CaskStruct::EMPTY_BLOCK])
188188

189189
expect(klass.deserialize_artifact_args([:foo, ["abc", "def"], { ghi: "jkl" }, :empty_block]))
190-
.to eq([:foo, ["abc", "def"], { ghi: "jkl" }, klass::EMPTY_BLOCK])
190+
.to eq([:foo, ["abc", "def"], { ghi: "jkl" }, Homebrew::API::CaskStruct::EMPTY_BLOCK])
191191
end
192192

193193
describe "::deserialize" do
@@ -200,7 +200,7 @@
200200

201201
struct = klass.deserialize(hash)
202202

203-
klass::PREDICATES.each do |predicate|
203+
Homebrew::API::CaskStruct::PREDICATES.each do |predicate|
204204
expect(struct.send(:"#{predicate}?")).to be false
205205
end
206206
end
@@ -223,7 +223,7 @@
223223

224224
struct = klass.deserialize(hash)
225225

226-
klass::PREDICATES.each do |predicate|
226+
Homebrew::API::CaskStruct::PREDICATES.each do |predicate|
227227
expect(struct.send(:"#{predicate}?")).to be true
228228
end
229229
end

Library/Homebrew/test/attestation_spec.rb

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@
139139

140140
expect do
141141
klass.check_attestation fake_bottle,
142-
klass::HOMEBREW_CORE_REPO
143-
end.to raise_error(klass::GhAuthNeeded)
142+
Homebrew::Attestation::HOMEBREW_CORE_REPO
143+
end.to raise_error(Homebrew::Attestation::GhAuthNeeded)
144144
end
145145

146146
it "raises when gh subprocess fails" do
@@ -149,15 +149,15 @@
149149

150150
expect(klass).to receive(:system_command!)
151151
.with(fake_gh, args: ["attestation", "verify", cached_download, "--repo",
152-
klass::HOMEBREW_CORE_REPO, "--format", "json"],
152+
Homebrew::Attestation::HOMEBREW_CORE_REPO, "--format", "json"],
153153
env: { "GH_TOKEN" => fake_gh_creds, "GH_HOST" => "github.com" }, secrets: [fake_gh_creds],
154154
print_stderr: false, chdir: HOMEBREW_TEMP)
155155
.and_raise(ErrorDuringExecution.new(["foo"], status: fake_error_status))
156156

157157
expect do
158158
klass.check_attestation fake_bottle,
159-
klass::HOMEBREW_CORE_REPO
160-
end.to raise_error(klass::InvalidAttestationError)
159+
Homebrew::Attestation::HOMEBREW_CORE_REPO
160+
end.to raise_error(Homebrew::Attestation::InvalidAttestationError)
161161
end
162162

163163
it "raises auth error when gh subprocess fails with auth exit code" do
@@ -166,15 +166,15 @@
166166

167167
expect(klass).to receive(:system_command!)
168168
.with(fake_gh, args: ["attestation", "verify", cached_download, "--repo",
169-
klass::HOMEBREW_CORE_REPO, "--format", "json"],
169+
Homebrew::Attestation::HOMEBREW_CORE_REPO, "--format", "json"],
170170
env: { "GH_TOKEN" => fake_gh_creds, "GH_HOST" => "github.com" }, secrets: [fake_gh_creds],
171171
print_stderr: false, chdir: HOMEBREW_TEMP)
172172
.and_raise(ErrorDuringExecution.new(["foo"], status: fake_auth_status))
173173

174174
expect do
175175
klass.check_attestation fake_bottle,
176-
klass::HOMEBREW_CORE_REPO
177-
end.to raise_error(klass::GhAuthInvalid)
176+
Homebrew::Attestation::HOMEBREW_CORE_REPO
177+
end.to raise_error(Homebrew::Attestation::GhAuthInvalid)
178178
end
179179

180180
it "raises when gh returns invalid JSON" do
@@ -183,15 +183,15 @@
183183

184184
expect(klass).to receive(:system_command!)
185185
.with(fake_gh, args: ["attestation", "verify", cached_download, "--repo",
186-
klass::HOMEBREW_CORE_REPO, "--format", "json"],
186+
Homebrew::Attestation::HOMEBREW_CORE_REPO, "--format", "json"],
187187
env: { "GH_TOKEN" => fake_gh_creds, "GH_HOST" => "github.com" }, secrets: [fake_gh_creds],
188188
print_stderr: false, chdir: HOMEBREW_TEMP)
189189
.and_return(fake_result_invalid_json)
190190

191191
expect do
192192
klass.check_attestation fake_bottle,
193-
klass::HOMEBREW_CORE_REPO
194-
end.to raise_error(klass::InvalidAttestationError)
193+
Homebrew::Attestation::HOMEBREW_CORE_REPO
194+
end.to raise_error(Homebrew::Attestation::InvalidAttestationError)
195195
end
196196

197197
it "raises when gh returns other subjects" do
@@ -200,15 +200,15 @@
200200

201201
expect(klass).to receive(:system_command!)
202202
.with(fake_gh, args: ["attestation", "verify", cached_download, "--repo",
203-
klass::HOMEBREW_CORE_REPO, "--format", "json"],
203+
Homebrew::Attestation::HOMEBREW_CORE_REPO, "--format", "json"],
204204
env: { "GH_TOKEN" => fake_gh_creds, "GH_HOST" => "github.com" }, secrets: [fake_gh_creds],
205205
print_stderr: false, chdir: HOMEBREW_TEMP)
206206
.and_return(fake_json_resp_wrong_sub)
207207

208208
expect do
209209
klass.check_attestation fake_bottle,
210-
klass::HOMEBREW_CORE_REPO
211-
end.to raise_error(klass::InvalidAttestationError)
210+
Homebrew::Attestation::HOMEBREW_CORE_REPO
211+
end.to raise_error(Homebrew::Attestation::InvalidAttestationError)
212212
end
213213

214214
it "checks subject prefix when the bottle is an :all bottle" do
@@ -217,12 +217,12 @@
217217

218218
expect(klass).to receive(:system_command!)
219219
.with(fake_gh, args: ["attestation", "verify", cached_download, "--repo",
220-
klass::HOMEBREW_CORE_REPO, "--format", "json"],
220+
Homebrew::Attestation::HOMEBREW_CORE_REPO, "--format", "json"],
221221
env: { "GH_TOKEN" => fake_gh_creds, "GH_HOST" => "github.com" }, secrets: [fake_gh_creds],
222222
print_stderr: false, chdir: HOMEBREW_TEMP)
223223
.and_return(fake_result_json_resp)
224224

225-
klass.check_attestation fake_all_bottle, klass::HOMEBREW_CORE_REPO
225+
klass.check_attestation fake_all_bottle, Homebrew::Attestation::HOMEBREW_CORE_REPO
226226
end
227227
end
228228

@@ -238,7 +238,7 @@
238238
it "calls gh with args for homebrew-core" do
239239
expect(klass).to receive(:system_command!)
240240
.with(fake_gh, args: ["attestation", "verify", cached_download, "--repo",
241-
klass::HOMEBREW_CORE_REPO, "--format", "json"],
241+
Homebrew::Attestation::HOMEBREW_CORE_REPO, "--format", "json"],
242242
env: { "GH_TOKEN" => fake_gh_creds, "GH_HOST" => "github.com" }, secrets: [fake_gh_creds],
243243
print_stderr: false, chdir: HOMEBREW_TEMP)
244244
.and_return(fake_result_json_resp)
@@ -249,7 +249,7 @@
249249
it "calls gh with args for homebrew-core and handles a multi-subject attestation" do
250250
expect(klass).to receive(:system_command!)
251251
.with(fake_gh, args: ["attestation", "verify", cached_download, "--repo",
252-
klass::HOMEBREW_CORE_REPO, "--format", "json"],
252+
Homebrew::Attestation::HOMEBREW_CORE_REPO, "--format", "json"],
253253
env: { "GH_TOKEN" => fake_gh_creds, "GH_HOST" => "github.com" }, secrets: [fake_gh_creds],
254254
print_stderr: false, chdir: HOMEBREW_TEMP)
255255
.and_return(fake_result_json_resp_multi_subject)
@@ -260,15 +260,15 @@
260260
it "calls gh with args for backfill when homebrew-core attestation is missing" do
261261
expect(klass).to receive(:system_command!)
262262
.with(fake_gh, args: ["attestation", "verify", cached_download, "--repo",
263-
klass::HOMEBREW_CORE_REPO, "--format", "json"],
263+
Homebrew::Attestation::HOMEBREW_CORE_REPO, "--format", "json"],
264264
env: { "GH_TOKEN" => fake_gh_creds, "GH_HOST" => "github.com" }, secrets: [fake_gh_creds],
265265
print_stderr: false, chdir: HOMEBREW_TEMP)
266266
.once
267-
.and_raise(klass::MissingAttestationError)
267+
.and_raise(Homebrew::Attestation::MissingAttestationError)
268268

269269
expect(klass).to receive(:system_command!)
270270
.with(fake_gh, args: ["attestation", "verify", cached_download, "--repo",
271-
klass::BACKFILL_REPO, "--format", "json"],
271+
Homebrew::Attestation::BACKFILL_REPO, "--format", "json"],
272272
env: { "GH_TOKEN" => fake_gh_creds, "GH_HOST" => "github.com" }, secrets: [fake_gh_creds],
273273
print_stderr: false, chdir: HOMEBREW_TEMP)
274274
.and_return(fake_result_json_resp_backfill)
@@ -279,23 +279,23 @@
279279
it "raises when the backfilled attestation is too new" do
280280
expect(klass).to receive(:system_command!)
281281
.with(fake_gh, args: ["attestation", "verify", cached_download, "--repo",
282-
klass::HOMEBREW_CORE_REPO, "--format", "json"],
282+
Homebrew::Attestation::HOMEBREW_CORE_REPO, "--format", "json"],
283283
env: { "GH_TOKEN" => fake_gh_creds, "GH_HOST" => "github.com" }, secrets: [fake_gh_creds],
284284
print_stderr: false, chdir: HOMEBREW_TEMP)
285-
.exactly(klass::ATTESTATION_MAX_RETRIES + 1)
286-
.and_raise(klass::MissingAttestationError)
285+
.exactly(Homebrew::Attestation::ATTESTATION_MAX_RETRIES + 1)
286+
.and_raise(Homebrew::Attestation::MissingAttestationError)
287287

288288
expect(klass).to receive(:system_command!)
289289
.with(fake_gh, args: ["attestation", "verify", cached_download, "--repo",
290-
klass::BACKFILL_REPO, "--format", "json"],
290+
Homebrew::Attestation::BACKFILL_REPO, "--format", "json"],
291291
env: { "GH_TOKEN" => fake_gh_creds, "GH_HOST" => "github.com" }, secrets: [fake_gh_creds],
292292
print_stderr: false, chdir: HOMEBREW_TEMP)
293-
.exactly(klass::ATTESTATION_MAX_RETRIES + 1)
293+
.exactly(Homebrew::Attestation::ATTESTATION_MAX_RETRIES + 1)
294294
.and_return(fake_result_json_resp_too_new)
295295

296296
expect do
297297
klass.check_core_attestation fake_bottle
298-
end.to raise_error(klass::InvalidAttestationError)
298+
end.to raise_error(Homebrew::Attestation::InvalidAttestationError)
299299
end
300300
end
301301
end

Library/Homebrew/test/bundle/brew_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183

184184
it "exits on cyclic exceptions" do
185185
expect(Formula).to receive(:installed).and_return([foo, bar, baz])
186-
expect_any_instance_of(klass::Topo).to receive(:tsort).and_raise(
186+
expect_any_instance_of(Homebrew::Bundle::Brew::Topo).to receive(:tsort).and_raise(
187187
TSort::Cyclic,
188188
'topological sort failed: ["foo", "bar"]',
189189
)

Library/Homebrew/test/bundle/mac_app_store_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@
282282
before do
283283
klass.reset!
284284
allow(klass).to receive_messages(package_manager_executable: Pathname.new("mas"), packages: [
285-
klass::App.new(id: "123", name: "foo"),
286-
klass::App.new(id: "456", name: "bar"),
285+
Homebrew::Bundle::MacAppStore::App.new(id: "123", name: "foo"),
286+
Homebrew::Bundle::MacAppStore::App.new(id: "456", name: "bar"),
287287
])
288288
end
289289

Library/Homebrew/test/bundle/winget_spec.rb

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,24 @@
8787
allow(klass).to receive(:package_manager_executable).and_return(Pathname.new("winget.exe"))
8888
allow(klass).to receive(:export_apps).with(Pathname.new("winget.exe"), source: "winget").and_return(
8989
[
90-
klass::App.new(id: "Microsoft.EdgeWebView2Runtime", name: "Microsoft Edge WebView2 Runtime",
91-
source: "winget"),
92-
klass::App.new(id: "Microsoft.OneDrive", name: "Microsoft OneDrive", source: "winget"),
93-
klass::App.new(id: "Microsoft.WSL", name: "Windows Subsystem for Linux", source: "winget"),
94-
klass::App.new(id: "Valve.Steam", name: "Steam", source: "winget"),
90+
Homebrew::Bundle::Winget::App.new(
91+
id: "Microsoft.EdgeWebView2Runtime",
92+
name: "Microsoft Edge WebView2 Runtime",
93+
source: "winget",
94+
),
95+
Homebrew::Bundle::Winget::App.new(id: "Microsoft.OneDrive", name: "Microsoft OneDrive", source: "winget"),
96+
Homebrew::Bundle::Winget::App.new(id: "Microsoft.WSL", name: "Windows Subsystem for Linux",
97+
source: "winget"),
98+
Homebrew::Bundle::Winget::App.new(id: "Valve.Steam", name: "Steam", source: "winget"),
9599
],
96100
)
97101
allow(klass).to receive(:export_apps).with(Pathname.new("winget.exe"), source: "msstore").and_return(
98102
[
99-
klass::App.new(id: "9NBLGGH4NNS1", name: "App Installer", source: "msstore"),
100-
klass::App.new(id: "XP89DCGQ3K6VLD", name: "PowerToys", source: "msstore"),
101-
klass::App.new(id: "Microsoft.UI.Xaml.2.8", name: "Microsoft.UI.Xaml.2.8", source: "msstore"),
102-
klass::App.new(id: "9N0DX20HK701", name: "Windows Terminal", source: "msstore"),
103+
Homebrew::Bundle::Winget::App.new(id: "9NBLGGH4NNS1", name: "App Installer", source: "msstore"),
104+
Homebrew::Bundle::Winget::App.new(id: "XP89DCGQ3K6VLD", name: "PowerToys", source: "msstore"),
105+
Homebrew::Bundle::Winget::App.new(id: "Microsoft.UI.Xaml.2.8", name: "Microsoft.UI.Xaml.2.8",
106+
source: "msstore"),
107+
Homebrew::Bundle::Winget::App.new(id: "9N0DX20HK701", name: "Windows Terminal", source: "msstore"),
103108
],
104109
)
105110
end
@@ -127,8 +132,8 @@
127132
winget = Pathname.new("winget.exe")
128133
allow(klass).to receive(:export_apps).and_call_original
129134
allow(klass).to receive(:exported_apps).with(winget, source: "winget").and_return([
130-
klass::App.new(id: "Valve.Steam", name: "Valve.Steam", source: "winget"),
131-
klass::App.new(id: "Unknown.Package", name: "Unknown.Package", source: "winget"),
135+
Homebrew::Bundle::Winget::App.new(id: "Valve.Steam", name: "Valve.Steam", source: "winget"),
136+
Homebrew::Bundle::Winget::App.new(id: "Unknown.Package", name: "Unknown.Package", source: "winget"),
132137
])
133138
allow(Utils).to receive(:popen_read)
134139
.with(winget, "list", "--source", "winget", "--accept-source-agreements", "--disable-interactivity",
@@ -229,7 +234,7 @@
229234

230235
it "keeps the package dump cache filtered and sorted after installation" do
231236
allow(klass).to receive(:export_apps).with(Pathname("winget.exe"), source: "winget").and_return([
232-
klass::App.new(id: "Valve.Steam", name: "Steam", source: "winget"),
237+
Homebrew::Bundle::Winget::App.new(id: "Valve.Steam", name: "Steam", source: "winget"),
233238
])
234239
allow(klass).to receive(:export_apps).with(Pathname("winget.exe"), source: "msstore").and_return([])
235240

@@ -340,10 +345,10 @@
340345
klass.reset!
341346
allow(klass).to receive(:package_manager_executable).and_return(Pathname.new("winget.exe"))
342347
allow(klass).to receive(:exported_apps).with(Pathname("winget.exe"), source: "winget").and_return([
343-
klass::App.new(id: "Valve.Steam", name: "Steam", source: "winget"),
348+
Homebrew::Bundle::Winget::App.new(id: "Valve.Steam", name: "Steam", source: "winget"),
344349
])
345350
allow(klass).to receive(:exported_apps).with(Pathname("winget.exe"), source: "msstore").and_return([
346-
klass::App.new(id: "XPDC2RH70K22MN", name: "Discord", source: "msstore"),
351+
Homebrew::Bundle::Winget::App.new(id: "XPDC2RH70K22MN", name: "Discord", source: "msstore"),
347352
])
348353
end
349354

Library/Homebrew/test/cask/list_spec.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,28 +120,28 @@
120120
describe "TAP_AND_NAME_COMPARISON" do
121121
describe "both strings are only names" do
122122
it "alphabetizes the strings" do
123-
expect(%w[a b].sort(&klass::TAP_AND_NAME_COMPARISON)).to eq(%w[a b])
124-
expect(%w[b a].sort(&klass::TAP_AND_NAME_COMPARISON)).to eq(%w[a b])
123+
expect(%w[a b].sort(&Cask::List::TAP_AND_NAME_COMPARISON)).to eq(%w[a b])
124+
expect(%w[b a].sort(&Cask::List::TAP_AND_NAME_COMPARISON)).to eq(%w[a b])
125125
end
126126
end
127127

128128
describe "both strings include tap" do
129129
it "alphabetizes the strings" do
130-
expect(%w[a/z/z b/z/z].sort(&klass::TAP_AND_NAME_COMPARISON)).to eq(%w[a/z/z b/z/z])
131-
expect(%w[b/z/z a/z/z].sort(&klass::TAP_AND_NAME_COMPARISON)).to eq(%w[a/z/z b/z/z])
130+
expect(%w[a/z/z b/z/z].sort(&Cask::List::TAP_AND_NAME_COMPARISON)).to eq(%w[a/z/z b/z/z])
131+
expect(%w[b/z/z a/z/z].sort(&Cask::List::TAP_AND_NAME_COMPARISON)).to eq(%w[a/z/z b/z/z])
132132

133-
expect(%w[z/a/z z/b/z].sort(&klass::TAP_AND_NAME_COMPARISON)).to eq(%w[z/a/z z/b/z])
134-
expect(%w[z/b/z z/a/z].sort(&klass::TAP_AND_NAME_COMPARISON)).to eq(%w[z/a/z z/b/z])
133+
expect(%w[z/a/z z/b/z].sort(&Cask::List::TAP_AND_NAME_COMPARISON)).to eq(%w[z/a/z z/b/z])
134+
expect(%w[z/b/z z/a/z].sort(&Cask::List::TAP_AND_NAME_COMPARISON)).to eq(%w[z/a/z z/b/z])
135135

136-
expect(%w[z/z/a z/z/b].sort(&klass::TAP_AND_NAME_COMPARISON)).to eq(%w[z/z/a z/z/b])
137-
expect(%w[z/z/b z/z/a].sort(&klass::TAP_AND_NAME_COMPARISON)).to eq(%w[z/z/a z/z/b])
136+
expect(%w[z/z/a z/z/b].sort(&Cask::List::TAP_AND_NAME_COMPARISON)).to eq(%w[z/z/a z/z/b])
137+
expect(%w[z/z/b z/z/a].sort(&Cask::List::TAP_AND_NAME_COMPARISON)).to eq(%w[z/z/a z/z/b])
138138
end
139139
end
140140

141141
describe "only one string includes tap" do
142142
it "prefers the string without tap" do
143-
expect(%w[a/z/z z].sort(&klass::TAP_AND_NAME_COMPARISON)).to eq(%w[z a/z/z])
144-
expect(%w[z a/z/z].sort(&klass::TAP_AND_NAME_COMPARISON)).to eq(%w[z a/z/z])
143+
expect(%w[a/z/z z].sort(&Cask::List::TAP_AND_NAME_COMPARISON)).to eq(%w[z a/z/z])
144+
expect(%w[z a/z/z].sort(&Cask::List::TAP_AND_NAME_COMPARISON)).to eq(%w[z a/z/z])
145145
end
146146
end
147147
end

Library/Homebrew/test/cmd/bundle_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
it "treats upgrade as install --upgrade", :aggregate_failures do
2828
with_env("HOMEBREW_BUNDLE_NO_UPGRADE" => "1") do
2929
args = klass.new(%w[upgrade -fq]).args
30-
context = klass.context(args, extensions: klass::BUNDLE_EXTENSIONS)
30+
context = klass.context(args, extensions: Homebrew::Cmd::Bundle::BUNDLE_EXTENSIONS)
3131

3232
expect(args.subcommand).to eq("install")
3333
expect(args.upgrade?).to be(true)

Library/Homebrew/test/cmd/services/cleanup_subcommand_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# typed: false
1+
# typed: true
22
# frozen_string_literal: true
33

44
require "services/subcommand/cleanup"
@@ -10,7 +10,7 @@
1010

1111
describe "#TRIGGERS" do
1212
it "contains all restart triggers" do
13-
expect(klass::TRIGGERS).to eq(%w[cleanup clean cl rm])
13+
expect(Homebrew::Cmd::Services::CleanupSubcommand::TRIGGERS).to eq(%w[cleanup clean cl rm])
1414
end
1515
end
1616

Library/Homebrew/test/cmd/services/info_subcommand_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# typed: false
1+
# typed: true
22
# frozen_string_literal: true
33

44
require "cmd/services"
@@ -12,7 +12,7 @@
1212

1313
describe "#TRIGGERS" do
1414
it "contains all restart triggers" do
15-
expect(klass::TRIGGERS).to eq(%w[info i])
15+
expect(Homebrew::Cmd::Services::InfoSubcommand::TRIGGERS).to eq(%w[info i])
1616
end
1717
end
1818

0 commit comments

Comments
 (0)