Convert Formula test to spec.
This commit is contained in:
parent
58571b57c8
commit
b0cd1c732d
1295
Library/Homebrew/test/formula_spec.rb
Normal file
1295
Library/Homebrew/test/formula_spec.rb
Normal file
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user