-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from teezzan/fix/co-authors_not_cleared_from_m…
…essage_template_on_switch
- Loading branch information
Showing
2 changed files
with
41 additions
and
16 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...b/bugs/89-co-authors-not-cleared-from-message-template-when-returning-to-git-solo.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Feature: 🐛 co-authors not cleared from message template when returning to git solo | ||
|
||
Background: | ||
Given I have installed git-mob into "local_bin" within the current directory | ||
And I look for executables in "local_bin" within the current directory | ||
|
||
Given a file named "~/.gitconfig" with: | ||
""" | ||
[user] | ||
name = Jane Doe | ||
email = jane@example.com | ||
""" | ||
|
||
And a file named "~/.git-coauthors" with: | ||
""" | ||
{ | ||
"coauthors": { | ||
"ad": { | ||
"name": "Amy Doe", | ||
"email": "amy@findmypast.com" | ||
}, | ||
"bd": { | ||
"name": "Bob Doe", | ||
"email": "bob@findmypast.com" | ||
} | ||
} | ||
} | ||
""" | ||
|
||
Scenario: | ||
Given I successfully run `git mob ad` | ||
And the file "~/.gitmessage" should contain: | ||
""" | ||
Co-authored-by: Amy Doe <amy@findmypast.com> | ||
""" | ||
When I successfully run `git solo` | ||
And the file "~/.gitmessage" should not contain "Co-authored-by" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters