aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/install_test.rb
diff options
context:
space:
mode:
authorAlyssa Ross2017-01-22 20:54:37 +0000
committerAlyssa Ross2017-01-22 20:54:37 +0000
commit19e61355b38b8ba96db0ca71849bb536af0490bf (patch)
tree09e345fcde85263b2635a1e670f953abe2dc4a92 /Library/Homebrew/test/install_test.rb
parentb53ce62ffb193748266c63d7b13fd023c0764ff0 (diff)
downloadbrew-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/install_test.rb')
-rw-r--r--Library/Homebrew/test/install_test.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/Library/Homebrew/test/install_test.rb b/Library/Homebrew/test/install_test.rb
index 3f3df6099..da6c1863f 100644
--- a/Library/Homebrew/test/install_test.rb
+++ b/Library/Homebrew/test/install_test.rb
@@ -76,16 +76,14 @@ class IntegrationCommandTestInstall < IntegrationCommandTestCase
repo_path = HOMEBREW_CACHE.join("repo")
repo_path.join("bin").mkpath
- using_git_env do
- repo_path.cd do
- shutup do
- system "git", "init"
- system "git", "remote", "add", "origin", "https://github.com/Homebrew/homebrew-foo"
- FileUtils.touch "bin/something.bin"
- FileUtils.touch "README"
- system "git", "add", "--all"
- system "git", "commit", "-m", "Initial repo commit"
- end
+ repo_path.cd do
+ shutup do
+ system "git", "init"
+ system "git", "remote", "add", "origin", "https://github.com/Homebrew/homebrew-foo"
+ FileUtils.touch "bin/something.bin"
+ FileUtils.touch "README"
+ system "git", "add", "--all"
+ system "git", "commit", "-m", "Initial repo commit"
end
end