diff --git a/spec/unit/provider/postgresql_conf/ruby_spec.rb b/spec/unit/provider/postgresql_conf/ruby_spec.rb index 11800b0fc7..139ab916cf 100644 --- a/spec/unit/provider/postgresql_conf/ruby_spec.rb +++ b/spec/unit/provider/postgresql_conf/ruby_spec.rb @@ -7,13 +7,6 @@ let(:resource) { Puppet::Type.type(:postgresql_conf).new(name: 'foo', value: 'bar') } let(:provider) { resource.provider } - before(:each) do - allow(provider).to receive(:file_path).and_return('/tmp/foo') - allow(provider).to receive(:read_file).and_return('foo = bar') - allow(provider).to receive(:write_file).and_return(true) - end - # rubocop:enable RSpec/ReceiveMessages - it 'has a method parse_config' do expect(provider).to respond_to(:parse_config) end