Sha256: 71a88a69d2cbaf43d30e91be376523613e0290a04764ca7866a367ddf42d2569

Contents?: true

Size: 502 Bytes

Versions: 5

Compression:

Stored size: 502 Bytes

Contents

require 'spec_helper'

describe DispatchRider::Registrars::SnsChannel do
  describe "#value" do
    let(:account){ "123456789012" }
    let(:region){ "us-west-2" }
    let(:topic_name){ "GeneralTopic" }
    let(:channel_options){ {account: account, region: region, topic: topic_name} }

    it "returns the value for the key/value pair while registering an amazon sns channel" do
      subject.value(:foo, channel_options).should eq("arn:aws:sns:us-west-2:123456789012:GeneralTopic")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dispatch-rider-1.5.3 spec/lib/dispatch-rider/registrars/sns_channel_spec.rb
dispatch-rider-1.5.2 spec/lib/dispatch-rider/registrars/sns_channel_spec.rb
dispatch-rider-1.5.1 spec/lib/dispatch-rider/registrars/sns_channel_spec.rb
dispatch-rider-1.5.0 spec/lib/dispatch-rider/registrars/sns_channel_spec.rb
dispatch-rider-1.4.2 spec/lib/dispatch-rider/registrars/sns_channel_spec.rb