We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ebf020 commit e75b977Copy full SHA for e75b977
spec/riemann/tools/postgresql_spec.rb
@@ -22,12 +22,10 @@
22
23
before do
24
general_result = double
25
- allow(general_result).to receive(:fields).and_return(general_fields)
26
- allow(general_result).to receive(:values).and_return(general_values)
+ allow(general_result).to receive_messages(fields: general_fields, values: general_values)
27
28
connection_result = double
29
- allow(connection_result).to receive(:fields).and_return(connection_fields)
30
- allow(connection_result).to receive(:values).and_return(connection_values)
+ allow(connection_result).to receive_messages(fields: connection_fields, values: connection_values)
31
32
conn = double
33
allow(conn).to receive(:transaction).and_yield
0 commit comments