Sha256: 58501051bc78502d26130755fe03c72b4d713cd71e722a0d0a7345f9c5efbecb

Contents?: true

Size: 622 Bytes

Versions: 2

Compression:

Stored size: 622 Bytes

Contents

# $Id: test_msa_segment.rb 40 2007-06-30 01:29:19Z segfault $
$: << '../lib'
require 'test/unit'
require 'ruby-hl7'

class MsaSegment < Test::Unit::TestCase
  def setup
    @base_msa = "MSA|AR|ZZ9380 ERR"
  end

  def test_create_msa
    assert_nothing_raised do
      msa = HL7::Message::Segment::MSA.new( @base_msa )
      assert_not_nil( msa )
      assert_equal( @base_msa, msa.to_s )
    end
  end

  def test_access_msa
    assert_nothing_raised do
      msa = HL7::Message::Segment::MSA.new( @base_msa )
      assert_equal( "AR", msa.ack_code )
      assert_equal( "ZZ9380 ERR", msa.control_id )
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-hl7-0.2.44 test/test_msa_segment.rb
ruby-hl7-0.2.50 test/test_msa_segment.rb