Clear P4CLIENT Environment before test
authorPaul Allen <pallen@perforce.com>
Fri, 27 Jun 2014 13:14:47 +0000 (14:14 +0100)
committerPaul Allen <pallen@perforce.com>
Fri, 27 Jun 2014 13:14:47 +0000 (14:14 +0100)
spec/unit/puppet/provider/vcsrepo/p4_spec.rb

index 1261915..3a4605b 100644 (file)
@@ -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