diff options
| author | Jack Nagel | 2014-07-30 21:04:17 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-30 21:04:17 -0500 |
| commit | 5ccce044ca04b9586667b538f818d4a018f21fa7 (patch) | |
| tree | a0680ef247f2312f05ee9ccf18317e48959bbf2c /Library | |
| parent | 331737ab25714ab6a31ae42a8377dca564033056 (diff) | |
| download | brew-5ccce044ca04b9586667b538f818d4a018f21fa7.tar.bz2 | |
Use the tab in place of build during tests
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 863037bdb..82e2a5f36 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -479,9 +479,7 @@ class Formula end def test - # Adding the used options allows us to use `build.with?` inside of tests - tab = Tab.for_name(name) - tab.used_options.each { |opt| build.args << opt unless build.has_opposite_of? opt } + @build = Tab.for_formula(self) ret = nil mktemp do @testpath = Pathname.pwd |
