spec/integration/logging_spec.rb in freddy-jruby-0.4.9 vs spec/integration/logging_spec.rb in freddy-jruby-0.5.0

- old
+ new

@@ -21,14 +21,17 @@ default_sleep end it 'logs all consumed messages' do expect(logger1).to have_received(:info).with(/Listening for requests on \S+/) - expect(logger1).to have_received(:debug).with(/Received message on \S+ with payload {:pay=>"load"}/) + expect(logger1).to have_received(:debug).with( + /Received message on \S+ with payload {:pay=>"load"}/ + ) end it 'logs all produced messages' do expect(logger2).to have_received(:debug).with(/Consuming messages on \S+/) - expect(logger2).to have_received(:debug).with(/Publishing request to \S+, waiting for response on amq.gen-\S+ with correlation_id .*/) - expect(logger2).to have_received(:debug).with(/Producing message {:pay=>"load"} to \S+/) + expect(logger2).to have_received(:debug).with( + /Publishing request with payload {:pay=>"load"} to \S+, waiting for response on amq.gen-\S+ with correlation_id .*/ + ) end end