Fix specs

This commit is contained in:
Douglas Eichelberger 2025-09-08 10:54:08 -07:00
parent 12745ac822
commit e719666d4b
No known key found for this signature in database
GPG Key ID: F90193CBD547EB81

View File

@ -241,7 +241,7 @@ RSpec.describe Tab do
tab = described_class.from_file(path)
source_path = "/usr/local/Library/Taps/homebrew/homebrew-core/Formula/foo.rb"
runtime_dependencies = [{ "full_name" => "foo", "version" => "1.0" }]
changed_files = %w[INSTALL_RECEIPT.json bin/foo]
changed_files = %w[INSTALL_RECEIPT.json bin/foo].map { Pathname.new(_1) }
expect(tab.used_options.sort).to eq(used_options.sort)
expect(tab.unused_options.sort).to eq(unused_options.sort)
@ -271,7 +271,7 @@ RSpec.describe Tab do
tab = described_class.from_file_content(path.read, path)
source_path = "/usr/local/Library/Taps/homebrew/homebrew-core/Formula/foo.rb"
runtime_dependencies = [{ "full_name" => "foo", "version" => "1.0" }]
changed_files = %w[INSTALL_RECEIPT.json bin/foo]
changed_files = %w[INSTALL_RECEIPT.json bin/foo].map { Pathname.new(_1) }
expect(tab.used_options.sort).to eq(used_options.sort)
expect(tab.unused_options.sort).to eq(unused_options.sort)