Skip to content

Commit

Permalink
Remove unused before block from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Nov 27, 2023
1 parent fdd8f06 commit 5039888
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions spec/unit/provider/postgresql_conf/ruby_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5039888

Please sign in to comment.