summaryrefslogtreecommitdiff
path: root/spec/unit/puppet
diff options
context:
space:
mode:
authorPaul Allen <pallen@perforce.com>2014-06-27 14:14:47 +0100
committerPaul Allen <pallen@perforce.com>2014-06-27 14:14:47 +0100
commit0435f81a3b8821a36dedc038982c3efdab90a3b1 (patch)
treed117bee6f566fe371934766c07c443da1afddc56 /spec/unit/puppet
parentf88ae5fd6c746de3b454e38a8616f016ada8cff9 (diff)
downloadpuppet-vcsrepo-0435f81a3b8821a36dedc038982c3efdab90a3b1.tar.gz
puppet-vcsrepo-0435f81a3b8821a36dedc038982c3efdab90a3b1.tar.bz2
Clear P4CLIENT Environment before test
Diffstat (limited to 'spec/unit/puppet')
-rw-r--r--spec/unit/puppet/provider/vcsrepo/p4_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/p4_spec.rb b/spec/unit/puppet/provider/vcsrepo/p4_spec.rb
index 1261915..3a4605b 100644
--- a/spec/unit/puppet/provider/vcsrepo/p4_spec.rb
+++ b/spec/unit/puppet/provider/vcsrepo/p4_spec.rb
@@ -48,6 +48,8 @@ describe Puppet::Type.type(:vcsrepo).provider(:p4) do
context "when a client and source are not given" do
it "should execute 'p4 client'" do
+ ENV['P4CLIENT'] = nil
+
provider.expects(:p4).with(['client', '-o', "puppet-1c5e7a8e4f702e5091dfba173bc0e7c0"]).returns({})
provider.expects(:p4).with(['client', '-i'], spec)
provider.create