A few more

This commit is contained in:
Douglas Eichelberger 2025-09-07 14:17:14 -07:00
parent 0630c9c446
commit d29e00d40e
No known key found for this signature in database
GPG Key ID: F90193CBD547EB81
5 changed files with 6 additions and 5 deletions

View File

@ -809,7 +809,7 @@ on_request: installed_on_request?, options:)
else
[]
end
options += effective_build_options_for(formula).used_options.to_a
options += effective_build_options_for(formula).used_options.to_a.map(&:to_s)
options
end

View File

@ -219,7 +219,7 @@ class SoftwareSpec
options << opt
end
sig { params(hash: T::Hash[T.any(String, Symbol), T.any(String, Symbol)]).void }
sig { params(hash: T::Hash[T.any(String, Symbol, T::Array[String]), T.any(String, Symbol, T::Array[String])]).void }
def deprecated_option(hash)
raise ArgumentError, "deprecated_option hash must not be empty" if hash.empty?

View File

@ -169,7 +169,8 @@ RSpec.describe Cask::Info, :cask do
cask = Cask::CaskLoader.load("local-transmission")
time = 1_720_189_863
tab = Cask::Tab.new("loaded_from_api" => true, "tabfile" => TEST_FIXTURE_DIR/"cask_receipt.json", "time" => time)
tab = Cask::Tab.new("loaded_from_api" => true, "tabfile" => TEST_FIXTURE_DIR/"cask_receipt.json",
"time" => time)
expect(cask).to receive(:installed?).and_return(true)
expect(cask).to receive(:caskroom_path).and_return(caskroom)
expect(cask).to receive(:installed_version).and_return("2.61")

View File

@ -275,7 +275,7 @@ RSpec.describe SystemCommand do
FileUtils.chmod "+x", path/"tool"
expect(described_class.run("tool", env: { "PATH" => path }).stdout).to include "Hello, world!"
expect(described_class.run("tool", env: { "PATH" => path.to_s }).stdout).to include "Hello, world!"
end
end