Skip to content

Commit

Permalink
Pet rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Jul 7, 2024
1 parent 4ebf020 commit e75b977
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/riemann/tools/postgresql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@

before do
general_result = double
allow(general_result).to receive(:fields).and_return(general_fields)
allow(general_result).to receive(:values).and_return(general_values)
allow(general_result).to receive_messages(fields: general_fields, values: general_values)

connection_result = double
allow(connection_result).to receive(:fields).and_return(connection_fields)
allow(connection_result).to receive(:values).and_return(connection_values)
allow(connection_result).to receive_messages(fields: connection_fields, values: connection_values)

conn = double
allow(conn).to receive(:transaction).and_yield
Expand Down

0 comments on commit e75b977

Please sign in to comment.