Sha256: f24a10a94c89ad489ebd7425e5f65e54f92e9c2d7ef2a7fcbeb30e1fa974dd31
Contents?: true
Size: 802 Bytes
Versions: 4
Compression:
Stored size: 802 Bytes
Contents
require 'spec_helper' describe DispatchRider::NotificationServices::AwsSns do let(:amazon_resource_name){ "arn:aws:sns:us-west-2:123456789012:GeneralTopic" } describe "#notifier_builder" do it "returns the notifier builder" do subject.notifier_builder.should eq(AWS::SNS) end end describe "#channel_registrar_builder" do it "returns the channel registrar builder" do subject.channel_registrar_builder.should eq(DispatchRider::Registrars::SnsChannel) end end describe "#channel" do before { subject.stub(:channel_registrar).and_return(foo: amazon_resource_name) } let(:topics){ double :sns_topics } let(:topic){ double :sns_topic } it "returns the channel" do subject.channel(:foo).arn.should == amazon_resource_name end end end
Version data entries
4 entries across 4 versions & 1 rubygems