test/components/client_test.rb in propono-2.0.0 vs test/components/client_test.rb in propono-2.1.0

- old
+ new

@@ -38,13 +38,30 @@ client = Propono::Client.new QueueListener.expects(:listen).with( client.aws_client, client.config, - topic + topic, + {} ) client.listen(topic) end + + def test_listen_calls_queue_listener_with_options + topic = 'foobar' + options = {foo: 'bar'} + + client = Propono::Client.new + QueueListener.expects(:listen).with( + client.aws_client, + client.config, + topic, + options + ) + client.listen(topic, options) + end + + def test_drain_queue_calls_queue_listener topic = 'foobar' client = Propono::Client.new