Sha256: 71934ec4eba8263cff8a898793b8c24953c419bdeb1c1218220c5f266688eca9

Contents?: true

Size: 1.19 KB

Versions: 11

Compression:

Stored size: 1.19 KB

Contents

# @(#) MQMBID sn=mqkoa-L160208.09 su=_Zdh2gM49EeWAYJom138ZUQ pn=appmsging/ruby/mqlight/spec/mqlight/logging_spec.rb
#
# <copyright
# notice="lm-source-program"
# pids="5725-P60"
# years="2013,2014"
# 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>

require 'spec_helper'
require 'spec_unsecure_helper'

describe Mqlight::Logging do
  describe 'ffdc' do
    subject do
      buffer = StringIO.new
      begin
        client = Mqlight::BlockingClient.new('amqp://localhost:5672',
                                             id: 'unit_test_client')
        logger = Mqlight::Logging::MqlightLogger.new(buffer)
        fail Mqlight::InternalError, 'unit test exception'
      rescue Mqlight::InternalError => ffdc_exception
        logger.ffdc('unittest', 1, client, 'unit test data', ffdc_exception)
      end
      buffer.string
    end

    it { should include 'unit test data' }
    it { should include 'unit_test_client' }
    it { should include '#<Mqlight::InternalError: unit test exception>' }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mqlight-1.0.2018091900-x86_64-linux spec/mqlight/logging_spec.rb
mqlight-1.0.2018091900-x86_64-darwin-17 spec/mqlight/logging_spec.rb
mqlight-1.0.2018091900-x86_64-darwin-16 spec/mqlight/logging_spec.rb
mqlight-1.0.2017051700-x86_64-linux spec/mqlight/logging_spec.rb
mqlight-1.0.2017051700-x86_64-darwin-16 spec/mqlight/logging_spec.rb
mqlight-1.0.2017051700-x86_64-darwin-15 spec/mqlight/logging_spec.rb
mqlight-1.0.2017040500-x86_64-darwin-16 spec/mqlight/logging_spec.rb
mqlight-1.0.2017040500-x86_64-darwin-15 spec/mqlight/logging_spec.rb
mqlight-1.0.2017040500-x86_64-linux spec/mqlight/logging_spec.rb
mqlight-1.0.2016020812-x86_64-linux spec/mqlight/logging_spec.rb
mqlight-1.0.2016020809-x86_64-linux spec/mqlight/logging_spec.rb