Merge pull request #2094 from reitermarkus/spec-formula
Convert Formula test to spec.
This commit is contained in:
commit
27d6644dfa
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