diff options
| author | Alyssa Ross | 2017-01-22 20:54:37 +0000 |
|---|---|---|
| committer | Alyssa Ross | 2017-01-22 20:54:37 +0000 |
| commit | 19e61355b38b8ba96db0ca71849bb536af0490bf (patch) | |
| tree | 09e345fcde85263b2635a1e670f953abe2dc4a92 /Library/Homebrew/test/formula_test.rb | |
| parent | b53ce62ffb193748266c63d7b13fd023c0764ff0 (diff) | |
| download | brew-19e61355b38b8ba96db0ca71849bb536af0490bf.tar.bz2 | |
tests: remove with_git_env method
A common git environment is now used in all tests, so this is no longer
required.
Diffstat (limited to 'Library/Homebrew/test/formula_test.rb')
| -rw-r--r-- | Library/Homebrew/test/formula_test.rb | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/Library/Homebrew/test/formula_test.rb b/Library/Homebrew/test/formula_test.rb index b06111370..ecdd1847b 100644 --- a/Library/Homebrew/test/formula_test.rb +++ b/Library/Homebrew/test/formula_test.rb @@ -533,14 +533,12 @@ class FormulaTests < Homebrew::TestCase cached_location = f.head.downloader.cached_location cached_location.mkpath - using_git_env do - cached_location.cd do - FileUtils.touch "LICENSE" - shutup do - system "git", "init" - system "git", "add", "--all" - system "git", "commit", "-m", "Initial commit" - end + cached_location.cd do + FileUtils.touch "LICENSE" + shutup do + system "git", "init" + system "git", "add", "--all" + system "git", "commit", "-m", "Initial commit" end end @@ -1105,14 +1103,12 @@ class OutdatedVersionsTests < Homebrew::TestCase head "file://#{testball_repo}", using: :git end - using_git_env do - testball_repo.cd do - FileUtils.touch "LICENSE" - shutup do - system "git", "init" - system "git", "add", "--all" - system "git", "commit", "-m", "Initial commit" - end + testball_repo.cd do + FileUtils.touch "LICENSE" + shutup do + system "git", "init" + system "git", "add", "--all" + system "git", "commit", "-m", "Initial commit" end end |
