Skip to content
Snippets Groups Projects
Commit 0759c7dc authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #2124 from reitermarkus/spec-upgrade

Convert `brew upgrade` test to spec.
parents 4d0986b5 76dfbde4
No related branches found
No related tags found
No related merge requests found
describe "brew upgrade", :integration_test do
it "upgrades a Formula to the latest version" do
setup_test_formula "testball"
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
shutup do
expect { brew "upgrade" }.to be_a_success
end
expect(HOMEBREW_CELLAR/"testball/0.1").to be_a_directory
end
end
require "testing_env"
class IntegrationCommandTestUpgrade < IntegrationCommandTestCase
def test_upgrade
setup_test_formula "testball"
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
cmd("upgrade")
assert((HOMEBREW_CELLAR/"testball/0.1").directory?,
"The latest version directory should be created")
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment