Skip to content

Commit

Permalink
Add aliases configuration test
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKarabaza committed Oct 17, 2017
1 parent 9ce7961 commit d77a7b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/git-elegant-configure.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ load commons
load fake-read

setup() {
fake-pass git "elegant commands"

fake-pass git "config --global user.name" "UserName"
fake-pass git "config --global user.email" "UserEmail"

Expand Down Expand Up @@ -41,7 +43,8 @@ setup() {
[ "${lines[1]}" = "your user name [UserName]: " ]
[ "${lines[2]}" = "your user email [UserEmail]: " ]
[ "${lines[3]}" = "whitespace issues on patching [fix]: " ]
[ ${#lines[@]} -eq 4 ]
[ "${lines[4]}" = "add git aliases for all 'elegant git' commands [yes]: " ]
[ ${#lines[@]} -eq 5 ]
}

@test "'configure': sequence of the configuration is correct when run with '--local' argument" {
Expand Down

0 comments on commit d77a7b3

Please sign in to comment.