Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mstachniuk committed Mar 13, 2019
1 parent fc4c6a7 commit 17697cc
Showing 1 changed file with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,7 @@ class GitCommitImplTest extends Specification {
def f2 = new File("f2")

expect:
getAddCommand([f1, f2], []) == ["git", "add", f1.absolutePath, f2.absolutePath]
}

def "git add command for directories"() {
def d1 = new File("d1")
def d2 = new File("d2")

expect:
getAddCommand([], [d1, d2]) == ["git", "add", d1.absolutePath, d2.absolutePath]
}

def "git add command for files and directories"() {
def f1 = new File("f1")
def d1 = new File("d1")

expect:
getAddCommand([f1], [d1]) == ["git", "add", f1.absolutePath, d1.absolutePath]
getAddCommand([f1, f2]) == ["git", "add", f1.absolutePath, f2.absolutePath]
}

def "git commit command"() {
Expand Down

0 comments on commit 17697cc

Please sign in to comment.