summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider
diff options
context:
space:
mode:
authorIgor Galić <i.galic@brainsware.org>2014-04-03 14:28:33 +0200
committerIgor Galić <i.galic@brainsware.org>2014-04-03 14:28:33 +0200
commit51063851095f3482c644f699ba57ffab3f830263 (patch)
tree6d5ccfb36765a6bb96c5f65fd07b6f79f441589c /spec/unit/puppet/provider
parentc1f613c2225b2692ae8a2f6c8213fbf826311d9a (diff)
downloadpuppet-vcsrepo-51063851095f3482c644f699ba57ffab3f830263.tar.gz
puppet-vcsrepo-51063851095f3482c644f699ba57ffab3f830263.tar.bz2
fix tabbing in vcsrepo test
Diffstat (limited to 'spec/unit/puppet/provider')
-rw-r--r--spec/unit/puppet/provider/vcsrepo/git_spec.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/git_spec.rb b/spec/unit/puppet/provider/vcsrepo/git_spec.rb
index 96c4f19..ba726fa 100644
--- a/spec/unit/puppet/provider/vcsrepo/git_spec.rb
+++ b/spec/unit/puppet/provider/vcsrepo/git_spec.rb
@@ -32,16 +32,16 @@ describe Puppet::Type.type(:vcsrepo).provider(:git_provider) do
end
context "with a remote not named 'origin'" do
- it "should execute 'git clone --origin not_origin" do
- resource[:remote] = 'not_origin'
- Dir.expects(:chdir).with('/').at_least_once.yields
- Dir.expects(:chdir).with('/tmp/test').at_least_once.yields
- provider.expects(:git).with('clone', '--origin', 'not_origin', resource.value(:source), resource.value(:path))
- provider.expects(:update_submodules)
- provider.expects(:git).with('branch', '-a').returns(resource.value(:revision))
- provider.expects(:git).with('checkout', '--force', resource.value(:revision))
- provider.create
- end
+ it "should execute 'git clone --origin not_origin" do
+ resource[:remote] = 'not_origin'
+ Dir.expects(:chdir).with('/').at_least_once.yields
+ Dir.expects(:chdir).with('/tmp/test').at_least_once.yields
+ provider.expects(:git).with('clone', '--origin', 'not_origin', resource.value(:source), resource.value(:path))
+ provider.expects(:update_submodules)
+ provider.expects(:git).with('branch', '-a').returns(resource.value(:revision))
+ provider.expects(:git).with('checkout', '--force', resource.value(:revision))
+ provider.create
+ end
end
context "with shallow clone enable" do