brew/Library/Homebrew/test/test_upgrade.rb
2016-09-27 00:15:56 +02:00

13 lines
358 B
Ruby

require "helper/integration_command_test_case"
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