Skip to content

Commit

Permalink
Update tests for 'init' and 'clone' commands
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKarabaza authored and rultor committed Sep 5, 2017
1 parent 730efa8 commit ff028b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/test/git-elegant-clone.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ load fake-cd
setup() {
fake-pass git clone
fake-pass git "clone https://github.com/extsoft/elegant-git.git"
fake-pass git "config --global user.name" aaa
fake-pass git "config --global user.email" [email protected]
fake-pass git "config --local user.name aaa"
fake-pass git "config --local user.email [email protected]"
fake-pass git "elegant configure --local"
}

@test "print message when run 'git-elegant clone'" {
Expand Down
5 changes: 1 addition & 4 deletions src/test/git-elegant-init.bats
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ load fake-read

setup() {
fake-pass git init
fake-pass git "config --global user.name" aaa
fake-pass git "config --global user.email" [email protected]
fake-pass git "config --local user.name aaa"
fake-pass git "config --local user.email [email protected]"
fake-pass git "elegant configure --local"
}

@test "exit code is 0 when run 'git-elegant init'" {
Expand Down

1 comment on commit ff028b3

@0pdd
Copy link

@0pdd 0pdd commented on ff028b3 Sep 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 9-5878affc disappeared in src/main/git-elegant, that's why I closed #39.

Please sign in to comment.