Files
analyzer-builder/test/publish_message_test.rb
2019-03-29 16:53:40 +00:00

18 lines
349 B
Ruby

require 'test_helper'
module Builder
class PublishMessageTest < Minitest::Test
def test_publishes_to_propono
topic = mock
data = mock
client = mock
client.expects(:publish).with(topic, data, async: false)
Propono.expects(:configure_client).returns(client)
PublishMessage.(topic, data)
end
end
end