spec/integrations/shared_examples.rb in firehose-1.2.3 vs spec/integrations/shared_examples.rb in firehose-1.2.4

- old
+ new

@@ -80,10 +80,12 @@ ws.onclose = lambda do |event| ws = nil end - ws.onerror { |e| raise 'ws failed' + "\n" + e.inspect } + ws.onerror = lambda do |event| + raise 'ws failed' + "\n" + event.inspect + end end # Great, we have all the pieces in order, lets run this thing in the reactor. em 180 do # Start the clients.