Sha256: d065771725ceb2f09353bf83980b23d963476f21b4c71a997680dbb3fd2cbea4
Contents?: true
Size: 511 Bytes
Versions: 6
Compression:
Stored size: 511 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Propono class AwsClientTest < Minitest::Test def test_publish_to_sns_proxies client = AwsClient.new(nil) sns_client = mock message = {foo: 'bar'} topic_arn = "asd" topic = mock(arn: topic_arn) sns_client.expects(:publish).with( topic_arn: topic_arn, message: message.to_json ) client.stubs(sns_client: sns_client) client.publish_to_sns(topic, message) end end end
Version data entries
6 entries across 6 versions & 1 rubygems