brew/Library/Homebrew/test/upgrade_test.rb
2016-11-16 23:52:38 +01:00

13 lines
333 B
Ruby

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