Sha256: 022f472443f384fb08a3903d755bcfc25c6be75e8763882f3a626cfbc95ed181

Contents?: true

Size: 644 Bytes

Versions: 11

Compression:

Stored size: 644 Bytes

Contents

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

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

    def setup
      config.access_key = "test-access-key"
      config.secret_key = "test-secret-key"
      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

    private

    def config
      Configuration.instance
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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