diff --git a/README.md b/README.md index db281588..b7249fda 100644 --- a/README.md +++ b/README.md @@ -280,7 +280,6 @@ Enabled by default only on specific platforms: * `brew_uninstall` – adds `--force` to `brew uninstall` if multiple versions were installed; * `brew_unknown_command` – fixes wrong brew commands, for example `brew docto/brew doctor`; * `brew_update_formula` – turns `brew update ` into `brew upgrade `; -* `brew_upgrade` – appends `--all` to `brew upgrade` as per Homebrew's new behaviour; * `pacman` – installs app with `pacman` if it is not installed (uses `yaourt` if available); * `pacman_not_found` – fixes package name with `pacman` or `yaourt`. diff --git a/tests/rules/test_brew_upgrade.py b/tests/rules/test_brew_upgrade.py deleted file mode 100644 index 62aca98a..00000000 --- a/tests/rules/test_brew_upgrade.py +++ /dev/null @@ -1,15 +0,0 @@ -import pytest -from thefuck.rules.brew_upgrade import match, get_new_command -from thefuck.types import Command - - -@pytest.mark.parametrize('command', [ - Command('brew upgrade', '')]) -def test_match(command): - assert match(command) - - -@pytest.mark.parametrize('command, new_command', [ - (Command('brew upgrade', ''), 'brew upgrade --all')]) -def test_get_new_command(command, new_command): - assert get_new_command(command) == new_command diff --git a/thefuck/rules/brew_upgrade.py b/thefuck/rules/brew_upgrade.py deleted file mode 100644 index 8f6d40db..00000000 --- a/thefuck/rules/brew_upgrade.py +++ /dev/null @@ -1,17 +0,0 @@ -# Appends --all to the brew upgrade command -# -# Example: -# > brew upgrade -# Warning: brew upgrade with no arguments will change behaviour soon! -# It currently upgrades all formula but this will soon change to require '--all'. -from thefuck.specific.brew import brew_available - -enabled_by_default = brew_available - - -def match(command): - return command.script == 'brew upgrade' - - -def get_new_command(command): - return command.script + ' --all'