Skip to content

Commit

Permalink
fix: GitExecutor test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Mar 22, 2021
1 parent 7d4279a commit e5ecf54
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ class GitExecutorTest extends Specification {
def target = new GitExecutor(project)
target.execute('init')
project.file('file.txt') << 'content'
target.execute('checkout', '-b', 'master')
target.execute('checkout', '-b', 'main')
target.execute('add', '.')
target.execute('config', 'user.email', '[email protected]')
target.execute('config', 'user.name', 'test user')
target.execute('commit', '-m', 'first commit')
target.execute('remote', 'add', 'origin', 'https://github.com/test/test')
when:
Expand All @@ -20,7 +22,7 @@ class GitExecutorTest extends Specification {
then:
url == 'https://github.com/test/test'
ref.size() == 40
branch == 'master'
branch == 'main'
cleanup:
project.projectDir.deleteDir()
}
Expand Down

0 comments on commit e5ecf54

Please sign in to comment.