Skip to content

Commit

Permalink
Add test for 'git elegant save' command
Browse files Browse the repository at this point in the history
Add test for 'git elegant save' command
  • Loading branch information
Tatyana Boloban committed Nov 14, 2018
1 parent a5a6fdd commit 6cef079
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/test/git-elegant-save.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bats

load addons-common
load addons-fake
load addons-read


teardown() {
clean-fake
}

setup() {
fake-pass git "add --interactive"
fake-pass git "elegant check --staged"
fake-pass git commit
}

@test "'save': command is available" {
check git-elegant save
[ "$status" -eq 0 ]
}

0 comments on commit 6cef079

Please sign in to comment.