Sha256: 16a6d9454f38dee1ffbaace4f249fd2bfb26523f505efe3cd546f3588d7d7459

Contents?: true

Size: 528 Bytes

Versions: 4

Compression:

Stored size: 528 Bytes

Contents

module Larva
  class Mocker
    def self.mock!
      Filum.setup('./log/test.log')
      Propono::Publisher.any_instance.stubs(:publish_via_sns)

      if const_defined?("MeducationSDK")
        MeducationSDK.config do |config|
          config.endpoint   = "http://localhost:3000/spi"
          config.access_id  = "Daemon"
          config.secret_key = "foobar"
          config.logger     = Filum.logger
        end
      end

      Propono.config do |config|
        config.logger = Filum.logger
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
larva-0.9.2 lib/larva/mocker.rb
larva-0.9.1 lib/larva/mocker.rb
larva-0.9.0 lib/larva/mocker.rb
larva-0.8.0 lib/larva/mocker.rb