Sha256: d01e7045a8536635dca0b94ed46109155a212145044b2ee65cd0123dee94ea61

Contents?: true

Size: 531 Bytes

Versions: 10

Compression:

Stored size: 531 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/system"
          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

10 entries across 10 versions & 1 rubygems

Version Path
larva-0.7.3 lib/larva/mocker.rb
larva-0.7.2 lib/larva/mocker.rb
larva-0.7.1 lib/larva/mocker.rb
larva-0.7.0 lib/larva/mocker.rb
larva-0.6.4 lib/larva/mocker.rb
larva-0.6.3 lib/larva/mocker.rb
larva-0.6.2 lib/larva/mocker.rb
larva-0.6.1 lib/larva/mocker.rb
larva-0.6.0 lib/larva/mocker.rb
larva-0.5.0 lib/larva/mocker.rb