diff options
| author | Jack Nagel | 2014-07-30 21:04:17 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-30 21:04:17 -0500 |
| commit | 66b034b943c2c4234c71165d244a581bde5b0b91 (patch) | |
| tree | a0f60592186f0333297dd0e9ac6e2cfb49676260 /Library | |
| parent | 9426831de9d79bb56f21309a333e99df3cacbaf6 (diff) | |
| download | homebrew-66b034b943c2c4234c71165d244a581bde5b0b91.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 |
