summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider/vcsrepo
diff options
context:
space:
mode:
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