Sha256: 920f4d6068cd728ce827680333b0c9a949220d1bae5e8966f6a16da77ae833d0

Contents?: true

Size: 617 Bytes

Versions: 4

Compression:

Stored size: 617 Bytes

Contents

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

module Propono
  class SqsTest < Minitest::Test
    class SqsTestClass
      include Sqs
    end

    def setup
      super
      Propono.config.access_key = "test-access-key"
      Propono.config.secret_key = "test-secret-key"
      Propono.config.queue_region = "us-east-1"
    end

    def test_sqs
      Fog::AWS::SQS.expects(:new)
        .with(:aws_access_key_id     => 'test-access-key',
              :aws_secret_access_key => 'test-secret-key',
              :region                => 'us-east-1')

      SqsTestClass.new.send :sqs
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
propono-1.7.0 test/components/sqs_test.rb
propono-1.6.0 test/components/sqs_test.rb
propono-1.5.0 test/components/sqs_test.rb
propono-1.4.0 test/components/sqs_test.rb