Sha256: 71748cdfa51396956f6d78f15617f5e740e5558cc94e273527f9a0b3931dd5b9

Contents?: true

Size: 659 Bytes

Versions: 12

Compression:

Stored size: 659 Bytes

Contents

require File.expand_path('../test_helper', __FILE__)

module Propono
  class SnsTest < Minitest::Test
    class SnsTestClass
      include Sns
    end

    def setup
      config.access_key = "test-access-key"
      config.secret_key = "test-secret-key"
      config.queue_region = "test-queue-region"
    end

    def test_sns
      Fog::AWS::SNS.expects(:new)
        .with(:aws_access_key_id     => 'test-access-key',
              :aws_secret_access_key => 'test-secret-key',
              :region                => 'test-queue-region')

      SnsTestClass.new.send :sns
    end

    private

    def config
      Configuration.instance
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
propono-0.5.6 test/sns_test.rb
propono-0.5.5 test/sns_test.rb
propono-0.5.4 test/sns_test.rb
propono-0.5.3 test/sns_test.rb
propono-0.5.2 test/sns_test.rb
propono-0.5.1 test/sns_test.rb
propono-0.5.0 test/sns_test.rb
propono-0.4.0 test/sns_test.rb
propono-0.3.0 test/sns_test.rb
propono-0.2.0 test/sns_test.rb
propono-0.1.0 test/sns_test.rb
propono-0.0.1 test/sns_test.rb