Convert Formula test to spec.

This commit is contained in:
Markus Reiter 2017-02-22 00:37:42 +01:00
parent 58571b57c8
commit b0cd1c732d
3 changed files with 1303 additions and 1205 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -216,4 +216,12 @@ describe Formulary do
end
end
end
describe "::core_path" do
it "returns the path to a Formula in the core tap" do
name = "foo-bar"
expect(subject.core_path(name))
.to eq(Pathname.new("#{HOMEBREW_LIBRARY}/Taps/homebrew/homebrew-core/Formula/#{name}.rb"))
end
end
end