Sha256: eb9d1b064fd0987de66aea16d75c5fce642512cf27f2e88d4fb20af237e16ec2
Contents?: true
Size: 776 Bytes
Versions: 4
Compression:
Stored size: 776 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' describe HL7::Message::Segment::NK1 do context 'general' do before :all do @base_nk1 = 'NK1|1|Mum^Martha^M^^^^L|MTH^Mother^HL70063^^^^2.5.1| 444 Home Street^Apt B^Ann Arbor^MI^99999^USA^H|^PRN^PH^^1^555^5552006' end it 'creates an NK1 segment' do expect do nk1 = HL7::Message::Segment::NK1.new( @base_nk1 ) expect(nk1).not_to be_nil expect(nk1.to_s).to eq @base_nk1 end.not_to raise_error end it 'allows access to an NK1 segment' do expect do nk1 = HL7::Message::Segment::NK1.new( @base_nk1 ) expect(nk1.name).to eq 'Mum^Martha^M^^^^L' expect(nk1.phone_number).to eq '^PRN^PH^^1^555^5552006' end.not_to raise_error end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-hl7-1.3.3 | spec/nk1_segment_spec.rb |
ruby-hl7-1.3.2 | spec/nk1_segment_spec.rb |
ruby-hl7-1.3.1 | spec/nk1_segment_spec.rb |
ruby-hl7-1.3.0 | spec/nk1_segment_spec.rb |