Files
analyzer-builder/test/publish_message_test.rb

18 lines
349 B
Ruby
Raw Permalink Normal View History

2019-03-29 16:27:00 +00:00
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)
2019-03-29 16:27:00 +00:00
end
end
end