mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 00:48:35 +00:00
assert that merge msg is populated correctly
This commit is contained in:
parent
3cd218de57
commit
53f65c8377
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue