Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #786 from ldez/JENKINS-33482
[JENKINS-33482] enhance Git one-liner test
  • Loading branch information
daspilker committed Mar 13, 2016
2 parents aa04e51 + 9be279d commit f68c860
Showing 1 changed file with 10 additions and 2 deletions.
Expand Up @@ -1176,8 +1176,16 @@ class ScmContextSpec extends Specification {

then:
context.scmNodes[0] != null
context.scmNodes[0].userRemoteConfigs[0].'hudson.plugins.git.UserRemoteConfig'[0].url[0].value() == GIT_REPO_URL
context.scmNodes[0].branches[0].'hudson.plugins.git.BranchSpec'[0].name[0].value() == '**'
with(context.scmNodes[0]) {
children().size() == 15
userRemoteConfigs[0].'hudson.plugins.git.UserRemoteConfig'[0].url[0].value() == GIT_REPO_URL
branches[0].'hudson.plugins.git.BranchSpec'[0].name[0].value() == '**'
createTag.size() == 0
with(extensions[0]) {
children().size() == 1
delegate.'hudson.plugins.git.extensions.impl.PerBuildTag'.size() == 1
}
}
(1.._) * mockJobManagement.requireMinimumPluginVersion('git', '2.2.6')
}

Expand Down

0 comments on commit f68c860

Please sign in to comment.