summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider
diff options
context:
space:
mode:
authorPaul Chechetin <paulche@yandex.ru>2012-12-21 20:49:45 +0400
committerPaul Chechetin <paulche@yandex.ru>2013-07-17 11:06:05 +0400
commitad6913b81db57f29ab634d353963b66ffb2a814d (patch)
treecd7e90097cb3cb90a2d2007309dc339b3c7aa973 /spec/unit/puppet/provider
parent04851c28b12973c679fc9f234fd0f5a193df9d7a (diff)
downloadpuppet-vcsrepo-ad6913b81db57f29ab634d353963b66ffb2a814d.tar.gz
puppet-vcsrepo-ad6913b81db57f29ab634d353963b66ffb2a814d.tar.bz2
Unlimited sudmodule's nesting for git provider
Diffstat (limited to 'spec/unit/puppet/provider')
-rw-r--r--spec/unit/puppet/provider/vcsrepo/git_spec.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/git_spec.rb b/spec/unit/puppet/provider/vcsrepo/git_spec.rb
index 83dbff2..c878941 100644
--- a/spec/unit/puppet/provider/vcsrepo/git_spec.rb
+++ b/spec/unit/puppet/provider/vcsrepo/git_spec.rb
@@ -176,11 +176,8 @@ describe_provider :vcsrepo, :git, :resource => {:path => '/tmp/vcsrepo'} do
provider.expects(:git).with('branch', '-a').returns(fixture(:git_branch_a))
provider.expects(:git).with('checkout', '--force', resource.value(:revision))
provider.expects(:git).with('branch', '-a').returns(fixture(:git_branch_a))
- provider.expects(:git).with('submodule', 'init')
- provider.expects(:git).with('submodule', 'update')
provider.expects(:git).with('branch', '-a').returns(fixture(:git_branch_a))
- provider.expects(:git).with('submodule', 'foreach', 'git', 'submodule', 'init')
- provider.expects(:git).with('submodule', 'foreach', 'git', 'submodule', 'update')
+ provider.expects(:git).with('submodule', 'update', '--init', '--recursive')
provider.revision = resource.value(:revision)
end
end