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