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

14 lines
344 B
Ruby

require "testing_env"
class IntegrationCommandTestLog < IntegrationCommandTestCase
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