formula: update test_fixtures path

Fix regression caused by #1364.
This commit is contained in:
Zhiming Wang 2016-11-17 15:17:09 -05:00
parent 649c7ab48a
commit 00532a3e3a
No known key found for this signature in database
GPG Key ID: BBD31D4D110044B8
2 changed files with 2 additions and 2 deletions

View File

@ -1623,7 +1623,7 @@ class Formula
# @private
def test_fixtures(file)
HOMEBREW_LIBRARY_PATH.join("test", "fixtures", file)
HOMEBREW_LIBRARY_PATH.join("test", "support", "fixtures", file)
end
# This method is overridden in {Formula} subclasses to provide the installation instructions.

View File

@ -634,7 +634,7 @@ class FormulaTests < Homebrew::TestCase
url "foo-1.0"
end
assert_equal Pathname.new("#{HOMEBREW_LIBRARY_PATH}/test/fixtures/foo"),
assert_equal Pathname.new("#{HOMEBREW_LIBRARY_PATH}/test/support/fixtures/foo"),
f1.test_fixtures("foo")
end