spec/ratchetio_spec.rb in ratchetio-0.6.3 vs spec/ratchetio_spec.rb in ratchetio-0.7.0

- old
+ new

@@ -149,11 +149,11 @@ a = { :foo => "bar" } b = { :a => a } c = { :b => b } a[:c] = c - logger_mock.should_receive(:error).with('[Ratchet.io] Error reporting message to Ratchet.io: object references itself') - Ratchetio.report_message("Test message with extra data", 'debug', a) + logger_mock.should_receive(:error).with(/\[Ratchet.io\] Error reporting message to Ratchet.io: (nesting of \d+ is too deep|object references itself)/) + Ratchetio.report_message("Test message with circular extra data", 'debug', a) end after(:each) do Ratchetio.configure do |config| config.logger = ::Rails.logger