mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 15:36:59 +00:00
Convert Formula test to spec.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user