aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_updater.rb
AgeCommit message (Collapse)Author
2016-02-25remove update-rubyXu Cheng
Closes Homebrew/homebrew#49523. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-15Promote update-bash to the default updater.Mike McQuaid
Also, rename the existing updater to `update-ruby` to allow using as a fallback. It will eventually be removed. Closes Homebrew/homebrew#49109. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-07update: always reset to origin/master.Mike McQuaid
Do a reset to `origin/master` and then stash but don't pop the stash after running update (unless you were on a branch). This may be mildly more annoying for Homebrew developers but means it's easier for our users who don't understand Git (and particularly when they don't understand that every tap is a separate Git repository). Closes Homebrew/homebrew#45825. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-19update: fix test for non-master update supportMartin Afanasjew
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>
2015-09-11update: fix when `HEAD` doesn't exist.Mike McQuaid
e.g. when it's a detached `HEAD` through checking out a commit rather than a branch.
2015-09-07update: explicitly no-ff merge and rebase.Josh Hagins
This overrides user configuration which may do otherwise. Closes Homebrew/homebrew#41570. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-27update: always report changes to branch 'master'Martin Afanasjew
If the user's working copy is *not* on the 'master' branch, the revision recorded after the update to the 'master' branch is not the one of the updated 'master' branch but that of whatever the user's current branch is. This tends to be not very helpful. This change records the revision *after* the update to the 'master' branch, but *before* switching back to the user's current branch prior to the update, effectively causing the report to show changes to the 'master' branch. Closes Homebrew/homebrew#42074. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-10test_updater: fix pull argument ordering.Mike McQuaid
2015-07-09update: stash save/pop uncommitted changes.Mike McQuaid
Also: - return to your previous branch after `brew update`. Closes Homebrew/homebrew#38568. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-06fix error message in test_updaterXu Cheng
Closes Homebrew/homebrew#41372. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-27Remove dead codeJack Nagel
2015-02-15Fix another filesystem leak in updater testsJack Nagel
2014-07-31Handle tap file renames that remove a file from the formula directoryJack Nagel
2014-07-26Add test for reporting tap updatesJack Nagel
2014-07-26Clean up updater testsJack Nagel
2014-07-26Only populate the report with formula pathsJack Nagel
2014-07-26Separate reading and parsing the diffJack Nagel
2014-07-25update: remove unused rename detectionJack Nagel
Right now this code only produces false positives. When we have real support for renames, we can implement it more carefully. Closes Homebrew/homebrew#31126.
2014-07-25update: simplify diff parsingJack Nagel
2014-07-03Add inspect to mock updater so test failures are readableJack Nagel
2014-06-27Convert update report to use compositionJack Nagel
2014-06-23Call original backtick using superJack Nagel
2014-06-23Pass repository path into the updaterJack Nagel
2014-06-18Use assert_predicateJack Nagel
2014-06-18Use a custom test class so we can avoid monkeypatchingJack Nagel
2014-06-11Use assert_emptyJack Nagel
2014-06-10Rename TEST_FOLDER to TEST_DIRECTORYJack Nagel
2014-06-10Remove ABS__FILE constant from test environmentJack Nagel
2014-06-10Pull mock initialization code into initializeJack Nagel
2014-06-10Move updater mock into test class namespaceJack Nagel
2014-04-25Pass around only absolute paths when dealing with tapsJack Nagel
2014-04-24Make the on-disk representation of taps unambiguousTsukasa OMOTO
This commit supports "-" and "_" in names of user and repository. Closes Homebrew/homebrew#28203. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-11-14Add some missing test cases for `brew update`Jack Nagel
2013-07-09Remove duplication in updater testsJack Nagel
2013-07-09Properly define tapped formulae in updatephinze
A tapped formula is a ruby file present: - in the root of the tap - in directory of the tap called Formula - in a directory of the tap called HomebrewFormula And nowhere else. This corrects an overzealous definition of tapped formula in the updater. (the correct definition has been in Pathname since e613cbe5783cea2abb8100b56c22126a1ab6b9f2) Refs Homebrew/homebrew#19743. Closes Homebrew/homebrew#21087. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-13Remove extra requireJack Nagel
2013-03-28Suppress uninitialized instance variable warningsJack Nagel
2012-07-04tests: clean up whitespaceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Prune some requires from test filesJack Nagel
testing_env already requires utils; set up the ARGV and ENV extensions there as well. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-14tests: bring `brew update` tests up to dateJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-05Adjust updater tests for `git config` callsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-21update: correct failing testsJack Nagel
Commit dec4b73aa0 ("Allow `brew update --rebase`") changed the format of the `git pull` command slightly, introducing an extra space (to allow for the --rebase option), so let's update the test expectations for this. We still need to write tests for '--rebase', but in the meantime they once again pass for the normal case. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-02update: bring tests up-to-dateJack Nagel
The tests for update have been neglected during the last few rounds of changes, so fix them up. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-06-14refactor `update` command to use git diff instead of parsing `pull` outputMislav Marohnić
This fixes reporting of which formulae changed in git versions where `pull` output is not compatible. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-14enable updater tests to be run on their ownMislav Marohnić
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.
2010-05-12Fix the update testsDavid Porter
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-06Move updater tests to separate file.Adam Vandenberg
2010-02-02Update test suite.Adam Vandenberg
* Break single test case class into several test cases. * Fix broken arch test. * Make update tests optional (seem to only work for mxcl). * Add more tests. * Move fixtures to separate folder.