Sha256: e1e51e409bb2ae127f1d4026b21137a9216a7d48f3b1e38628d1ddd38a654a48

Contents?: true

Size: 883 Bytes

Versions: 10

Compression:

Stored size: 883 Bytes

Contents

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

module Larva
  class MockerTest < Minitest::Test
    def test_filum_is_setup
      Filum.expects(:setup).with('./log/test.log')
      Mocker.mock!
    end

    def test_propono_publisher_is_stubbed
      any_instance = mock()
      any_instance.expects(:stubs).with(:publish_via_sns)
      Propono::Publisher.expects(:any_instance).returns(any_instance)
      Mocker.mock!
    end

    def test_loquor_is_setup
      Mocker.mock!
      assert_equal "http://localhost:3000/system", MeducationSDK.config.endpoint
      assert_equal "Daemon", MeducationSDK.config.access_id
      assert_equal "foobar", MeducationSDK.config.secret_key
      assert_equal Filum.logger, MeducationSDK.config.logger
    end

    def test_propono_is_configured
      Mocker.mock!
      assert_equal Filum.logger, Propono.config.logger
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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