Sha256: bae1e90dae3fd426510499562e721ac6a7460def52e7b61feb50ccca550b9041

Contents?: true

Size: 900 Bytes

Versions: 1

Compression:

Stored size: 900 Bytes

Contents

# @(#) MQMBID sn=mqkoa-L151208.15 su=_G3xYgJ26EeWqUvq4M3I6bA pn=appmsging/ruby/mqlight/spec/spec_unsecure_helper.rb
#
# <copyright
# notice="lm-source-program"
# pids="5725-P60"
# years="2013,2015"
# crc="3568777996" >
# Licensed Materials - Property of IBM
#
# 5725-P60
#
# (C) Copyright IBM Corp. 2015
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with
# IBM Corp.
# </copyright>

class TransportStub
  def stop_threads
  end
end
transport_stub = TransportStub.new

RSpec.configure do |config|
  config.before(:each) do
    allow(Mqlight::UnsecureEndPoint).to receive(:new) do |args|
      @thread_vars = args[:thread_vars]
      @thread_vars.proton.sockets_open=true
    end.and_return transport_stub
    allow(transport_stub).to receive(:start_connection_threads)
    allow(transport_stub).to receive(:stop_threads)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mqlight-1.0.2015120815-x86_64-linux spec/spec_unsecure_helper.rb