Sha256: 50189d44a5adf1ade96be65c5fd94dcc98badd280eec5a73e4103efa7a1b2f0c
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
require "codeclimate-test-reporter" CodeClimate::TestReporter.start gem "minitest" require "minitest/autorun" require "minitest/pride" require "minitest/mock" require "mocha/setup" lib = File.expand_path('../../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "propono" Fog.mock! class Minitest::Test def setup Propono::Configuration.instance.access_key = "test-access-key" Propono::Configuration.instance.secret_key = "test-secret-key" Propono::Configuration.instance.queue_region = "us-east-1" end end class Fog::AWS::SNS::Mock def create_topic(*args) foo = Object.new class << foo def body {"TopicArn" => "FoobarFromTheMock"} end end foo end def subscribe(topic_arn, arn_or_url, type) end end require 'fog' class Fog::AWS::SQS::Mock def create_queue(*args) end end Fog::AWS::SQS::Mock::QueueUrl = 'https://meducation.net/foobar' Fog::AWS::SQS::Mock::QueueArn = 'FoobarArn' data = {'Attributes' => {"QueueArn" => Fog::AWS::SQS::Mock::QueueArn}} queues = Fog::AWS::SQS::Mock.data["us-east-1"]["test-access-key"][:queues] queues[Fog::AWS::SQS::Mock::QueueUrl] = data
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
propono-0.1.0 | test/test_helper.rb |