Sha256: b82ab45dd562016e9cfcf52e9d73f32edd0c99771b43170c96ad90706f0d9fbe

Contents?: true

Size: 577 Bytes

Versions: 2

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class TestServiceStatus < MiniTest::Test
  def setup
    node =
      load_xml_fixture('service_status').xpath('//xmlns:GetServiceStatusResult')
                                        .first
    @status = ServiceStatus.new(node)
  end

  def test_status
    assert_kind_of String, @status.status
  end

  def test_timestamp
    assert_kind_of Time, @status.timestamp
  end

  def test_message_id
    assert_kind_of String, @status.message_id
  end

  def test_messages
    assert_kind_of Array, @status.messages
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mws-orders-0.3.1 test/mws/orders/test_service_status.rb
mws-orders-0.3.0 test/mws/orders/test_service_status.rb