Sha256: 795feb2cd6a390634e3a9833db5d7322d9ec58ea901fe78f2ce3313402be2fe7

Contents?: true

Size: 579 Bytes

Versions: 3

Compression:

Stored size: 579 Bytes

Contents

module BaseTest

  # Need this to support the 'super' calls
  def before_setup; end
  def after_teardown; end

end

module Pact
  module Consumer
    module Minitest
      def reset
        # Dirty hack to clear @@before_suite_hook_ran flag
        # for tests
        @@before_suite_hook_ran = false
      end
    end
  end
end

class TestTest
  include BaseTest
  include Pact::Consumer::Minitest
end

module Pact
  module  Consumer
    class SpecHooks
      def after_suite
        # Override - will try and actually shutdown mock servers otherwise
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pact-consumer-minitest-1.0.1 spec/support/test.rb
pact-consumer-minitest-1.0.0 spec/support/test.rb
pact-consumer-minitest-0.0.1 spec/support/test.rb