Sha256: 7173c49fd1feeee4da6ea983778a89cc8672fc792ed0eb07a11f19a471e6c98b

Contents?: true

Size: 563 Bytes

Versions: 8

Compression:

Stored size: 563 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_propono_is_configured
      Mocker.mock!
      assert_equal Filum.logger, Propono.config.logger
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
larva-1.3.0 test/mocker_test.rb
larva-1.2.0 test/mocker_test.rb
larva-1.1.3 test/mocker_test.rb
larva-1.1.2 test/mocker_test.rb
larva-1.1.1 test/mocker_test.rb
larva-1.1.0 test/mocker_test.rb
larva-1.0.1 test/mocker_test.rb
larva-1.0.0 test/mocker_test.rb