assert that merge msg is populated correctly

This commit is contained in:
Stephan Dilly 2021-06-01 16:27:37 +02:00
parent 3cd218de57
commit 53f65c8377

View file

@ -118,6 +118,7 @@ mod tests {
create_branch,
tests::{repo_init, write_commit_file},
};
use pretty_assertions::assert_eq;
#[test]
fn test_smoke() {
@ -134,6 +135,10 @@ mod tests {
merge_branch(repo_path, "master").unwrap();
let msg = merge_msg(repo_path).unwrap();
assert_eq!(&msg[0..12], "Merge branch");
let mergeheads = mergehead_ids(repo_path).unwrap();
assert_eq!(mergeheads[0], c1);