Merge pull request #2094 from reitermarkus/spec-formula

Convert Formula test to spec.
This commit is contained in:
Markus Reiter 2017-02-25 14:40:02 +01:00 committed by GitHub
commit 27d6644dfa
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