summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider/vcsrepo
diff options
context:
space:
mode:
authorPaul Allen <pallen@perforce.com>2014-06-20 09:59:42 +0100
committerPaul Allen <pallen@perforce.com>2014-06-20 12:16:29 +0100
commit24e2f91ffb0091bc6f67b4d90f9702690bc1179f (patch)
treef91531196a03077e2ebebeb9d14fb7cdf245648a /spec/unit/puppet/provider/vcsrepo
parent8256eff1800e1377c7cf2b961ef63074a2ede0d4 (diff)
downloadpuppet-vcsrepo-24e2f91ffb0091bc6f67b4d90f9702690bc1179f.tar.gz
puppet-vcsrepo-24e2f91ffb0091bc6f67b4d90f9702690bc1179f.tar.bz2
Detab to 2 spaces.
Diffstat (limited to 'spec/unit/puppet/provider/vcsrepo')
-rw-r--r--spec/unit/puppet/provider/vcsrepo/p4_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/p4_spec.rb b/spec/unit/puppet/provider/vcsrepo/p4_spec.rb
index 822106d..2c202f2 100644
--- a/spec/unit/puppet/provider/vcsrepo/p4_spec.rb
+++ b/spec/unit/puppet/provider/vcsrepo/p4_spec.rb
@@ -15,7 +15,7 @@ describe Puppet::Type.type(:vcsrepo).provider(:p4) do
Puppet::Util.stubs(:which).with('p4').returns('/usr/local/bin/p4')
end
- spec = {
+ spec = {
:input => "Root: /tmp/vcsrepo\nDescription: Generated by Puppet VCSrepo\n\nView:\n",
:marshal => false
}
@@ -46,17 +46,17 @@ describe Puppet::Type.type(:vcsrepo).provider(:p4) do
context "when a client and source are not given" do
it "should execute 'p4 client'" do
- provider.expects(:p4).with(['client', '-o', "puppet-51f0a4b45dbfc10614df94f0a189c16f"]).returns({})
- provider.expects(:p4).with(['client', '-i'], spec)
- provider.create
+ provider.expects(:p4).with(['client', '-o', "puppet-51f0a4b45dbfc10614df94f0a189c16f"]).returns({})
+ provider.expects(:p4).with(['client', '-i'], spec)
+ provider.create
end
end
end
describe 'destroying' do
it "it should remove the directory" do
- resource[:p4client] = 'test_client'
- provider.expects(:p4).with(['client', '-d', '-f', resource.value(:p4client)])
+ resource[:p4client] = 'test_client'
+ provider.expects(:p4).with(['client', '-d', '-f', resource.value(:p4client)])
expects_rm_rf
provider.destroy
end