Simplify test.
This commit is contained in:
parent
22bb15748b
commit
c5a877d7db
@ -251,10 +251,7 @@ describe Formulary do
|
||||
end
|
||||
|
||||
it "returns a Formula from a fully qualified Alias path" do
|
||||
alias_dir = tap.path/"Aliases"
|
||||
alias_dir.mkpath
|
||||
FileUtils.ln_s formula_path, alias_dir/"bar"
|
||||
expect(described_class.factory("#{tap}/bar")).to be_a(Formula)
|
||||
expect(described_class.factory("#{tap.name}/#{alias_name}")).to be_a(Formula)
|
||||
end
|
||||
|
||||
it "raises an error when the Formula cannot be found" do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user