Sha256: 55bb3839e9fc586dc51bc5bca85379060339838909773633412ae1738b13af54
Contents?: true
Size: 832 Bytes
Versions: 2
Compression:
Stored size: 832 Bytes
Contents
require_relative 'test_helper' class ServiceStatusParserTest < ParserTest def setup node = fixture('service_status').xpath('//xmlns:GetServiceStatusResult').first @service_status = Parser::ServiceStatus.new(node) end def test_status assert_kind_of String, @service_status.status end def test_timestamp assert_kind_of Time, @service_status.timestamp end def test_message_id assert_kind_of String, @service_status.message_id end def test_messages assert_kind_of Array, @service_status.messages end def test_ok? @service_status.stub(:status, 'GREEN') do assert @service_status.ok? end @service_status.stub(:status, 'RED') do refute @service_status.ok? end end def test_inspect assert_equal @service_status.status, @service_status.to_s end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mws-orders-0.0.2 | test/parsers/service_status_test.rb |
mws-orders-0.0.1 | test/parsers/service_status_test.rb |