Sha256: 78e0bea1c7a477fad53448891dfc10872302706644b9e473b925a739fc5197f1

Contents?: true

Size: 809 Bytes

Versions: 4

Compression:

Stored size: 809 Bytes

Contents

# encoding: UTF-8
require 'spec_helper'

describe HL7::Message::Segment::MFI do
  context 'general' do
    before :all do
      @base_sft = 'MFI|HL70006^RELIGION^HL70175|TEST|UPD|||AL'
    end

    it 'creates an MFI segment' do
      expect do
        sft = described_class.new( @base_sft )
        expect(sft).not_to be_nil
        expect(sft.to_s).to eq(@base_sft)
      end.not_to raise_error
    end

    it 'allows access to an MFI segment' do
      expect do
        sft = described_class.new( @base_sft )
        expect(sft.master_file_identifier).to eq 'HL70006^RELIGION^HL70175'
        expect(sft.master_file_application_identifier).to eq 'TEST'
        expect(sft.file_level_event_code).to eq 'UPD'
        expect(sft.response_level_code).to eq 'AL'
      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/mfi_segment_spec.rb
ruby-hl7-1.3.2 spec/mfi_segment_spec.rb
ruby-hl7-1.3.1 spec/mfi_segment_spec.rb
ruby-hl7-1.3.0 spec/mfi_segment_spec.rb