From 37ce5551047422fa68d9535e9f04e8d739387afe Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Sat, 19 Sep 2015 14:19:38 +0200 Subject: [PATCH] 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 --- Library/Homebrew/test/test_updater.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/test/test_updater.rb b/Library/Homebrew/test/test_updater.rb index 16f4f2e858..20d26e6e90 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")