summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2014-04-03 12:17:41 -0400
committerAshley Penney <ashley.penney@puppetlabs.com>2014-04-03 12:17:41 -0400
commita388ce3f1f734a909101c1995202ae123bee0668 (patch)
tree6d5ccfb36765a6bb96c5f65fd07b6f79f441589c
parentc1f613c2225b2692ae8a2f6c8213fbf826311d9a (diff)
parent51063851095f3482c644f699ba57ffab3f830263 (diff)
downloadpuppet-vcsrepo-a388ce3f1f734a909101c1995202ae123bee0668.tar.gz
puppet-vcsrepo-a388ce3f1f734a909101c1995202ae123bee0668.tar.bz2
Merge pull request #131 from igalic/fix-tabbing
fix tabbing in vcsrepo test
-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