aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Afanasjew2015-09-19 14:19:38 +0200
committerDominyk Tiller2015-09-19 16:28:16 +0100
commit37ce5551047422fa68d9535e9f04e8d739387afe (patch)
tree30948a323ec05ef048c01b2aaeb7ddd56a109ec4
parent520b8496d45aed3974651fca8d8f644bae02c8ed (diff)
downloadbrew-37ce5551047422fa68d9535e9f04e8d739387afe.tar.bz2
update: fix test for non-master update support
Commit a71d4a9b (PR Homebrew/homebrew#44058) brought support for updating repositories with a default branch different from master. This fixes the tests broken by that commit. Closes Homebrew/homebrew#44135. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
-rw-r--r--Library/Homebrew/test/test_updater.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_updater.rb b/Library/Homebrew/test/test_updater.rb
index 16f4f2e85..20d26e6e9 100644
--- a/Library/Homebrew/test/test_updater.rb
+++ b/Library/Homebrew/test/test_updater.rb
@@ -58,6 +58,7 @@ class UpdaterTests < Homebrew::TestCase
FormulaVersions.stubs(:new).returns(stub(:formula_at_revision => "2.0"))
@updater.diff = fixture(fixture_name)
@updater.in_repo_expect("git diff --quiet", true)
+ @updater.in_repo_expect("git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null", "refs/remotes/origin/master")
@updater.in_repo_expect("git symbolic-ref --short HEAD 2>/dev/null", "master")
@updater.in_repo_expect("git rev-parse -q --verify HEAD", "1234abcd")
@updater.in_repo_expect("git config core.autocrlf false")