test/propono_test.rb in propono-0.8.2 vs test/propono_test.rb in propono-0.9.0

- old
+ new

@@ -43,12 +43,13 @@ end def test_proxy_udp_calls_publish_in_the_block topic = "foobar" message = "message" - Propono.stubs(:listen_to_udp).yields(topic, message) - Publisher.expects(:publish).with(topic, message, {}) + options = {id: "catdog"} + Propono.stubs(:listen_to_udp).yields(topic, message, options) + Publisher.expects(:publish).with(topic, message, options) Propono.proxy_udp end def test_proxy_tcp_calls_listen TcpListener.expects(:listen).with() @@ -56,11 +57,12 @@ end def test_proxy_tcp_calls_publish_in_the_block topic = "foobar" message = "message" - Propono.stubs(:listen_to_tcp).yields(topic, message) - Publisher.expects(:publish).with(topic, message, {}) + options = {id: "catdog"} + Propono.stubs(:listen_to_tcp).yields(topic, message, options) + Publisher.expects(:publish).with(topic, message, options) Propono.proxy_tcp end end end