brew/Library/Homebrew/test/test_integration_cmds_log.rb

14 lines
352 B
Ruby
Raw Normal View History

require "integration_cmds_tests"
class IntegrationCommandTestLog < IntegrationCommandTests
def test_log
FileUtils.cd HOMEBREW_REPOSITORY do
shutup do
system "git", "init"
system "git", "commit", "--allow-empty", "-m", "This is a test commit"
end
end
assert_match "This is a test commit", cmd("log")
end
end