diff --git a/spec/unit/puppet/provider/posixacl_spec.rb b/spec/unit/puppet/provider/posixacl_spec.rb index b057126..19d2b2b 100644 --- a/spec/unit/puppet/provider/posixacl_spec.rb +++ b/spec/unit/puppet/provider/posixacl_spec.rb @@ -16,8 +16,10 @@ end it 'encodes spaces in group names' do RSpec::Mocks.with_temporary_scope do - Puppet::Type.stubs(:getfacl).returns("group:test group:rwx\n") - File.stubs(:exist?).returns(true) + #Puppet::Type.stubs(:getfacl).returns("group:test group:rwx\n") + allow(Puppet::Type).to receive(:getfacl).and_return("group:test group:rwx\n") + #File.stubs(:exist?).returns(true) + allow(File).to receive(:exist?).and_return(true) expect do provider_class.command :permission end == ['group:test\040group:rwx']