Pass warn in FromNameLoader.
This commit is contained in:
parent
d3ef383753
commit
0684a16293
@ -779,7 +779,7 @@ module Formulary
|
||||
|
||||
name = ref
|
||||
|
||||
loaders = Tap.map { |tap| super("#{tap}/#{name}") }
|
||||
loaders = Tap.map { |tap| super("#{tap}/#{name}", warn: warn) }
|
||||
.compact
|
||||
.select { _1.path.exist? }
|
||||
|
||||
|
||||
@ -550,6 +550,7 @@ RSpec.describe Formulary do
|
||||
before do
|
||||
old_tap.path.mkpath
|
||||
(old_tap.path/"tap_migrations.json").write tap_migrations.to_json
|
||||
FileUtils.touch default_tap.formula_dir/"foo.rb"
|
||||
end
|
||||
|
||||
it "does not warn when loading the short token" do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user