Sha256: bfe5511f005614a2aa66bfd1a738be9ffc048218d2d3fb811b931993aec4feba
Contents?: true
Size: 640 Bytes
Versions: 2
Compression:
Stored size: 640 Bytes
Contents
describe Pheme::TopicPublisher do before(:each) { use_default_configuration! } subject { ExamplePublisher.new(topic_arn: "arn:aws:sns:whatever") } describe "#publish_events" do it "publishes the correct events" do expect(Pheme.configuration.sns_client).to receive(:publish).with({ topic_arn: "arn:aws:sns:whatever", message: {id: "id-0", status: "complete"}.to_json, }) expect(Pheme.configuration.sns_client).to receive(:publish).with({ topic_arn: "arn:aws:sns:whatever", message: {id: "id-1", status: "complete"}.to_json, }) subject.publish_events end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pheme-0.0.2 | spec/topic_publisher_spec.rb |
pheme-0.0.1 | spec/topic_publisher_spec.rb |