Sha256: b2e491a4e0c0fb9fa87f79bf42c80c517043bea2a34cec60c5a12e32ec26c429

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

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
      expect(subject.value(:foo, channel_options)).to eq("arn:aws:sns:us-west-2:123456789012:GeneralTopic")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dispatch-rider-2.2.0 spec/lib/dispatch-rider/registrars/sns_channel_spec.rb