Sha256: 5f50c60828a0b4cefd4b0ed8677f34f55851aaddf0b5fc03d33ae03579fd5c10

Contents?: true

Size: 851 Bytes

Versions: 7

Compression:

Stored size: 851 Bytes

Contents

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 "larva"

module MeducationSDK
  def self.config
    @config ||= Struct.new(:access_id, :secret_key, :endpoint, :logger).new
    if block_given?
      yield @config
    else
      @config
    end
  end
end

class Minitest::Test

  def setup
    Fog.mock!
    Filum.setup('log/test.log')
    MeducationSDK.instance_variable_set(:@config, nil)
    Propono.config do |config|
      config.access_key = "test-access-key"
      config.secret_key = "test-secret-key"
      config.queue_region = "us-east-1"
      config.application_name = "MyApp"
      config.queue_suffix = nil

      config.logger = Filum.logger
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
larva-0.9.2 test/test_helper.rb
larva-0.9.1 test/test_helper.rb
larva-0.9.0 test/test_helper.rb
larva-0.8.0 test/test_helper.rb
larva-0.7.3 test/test_helper.rb
larva-0.7.2 test/test_helper.rb
larva-0.7.1 test/test_helper.rb