lib/eancom/parser/document.rb in eancom-1.5.7 vs lib/eancom/parser/document.rb in eancom-1.6.0

- old
+ new

@@ -25,10 +25,10 @@ if segment.is_header? @document.add_to_header(segment) elsif segment.is_body? @document.add_to_body(segment) elsif segment.is_footer? - @document.add_to_body(segment) + @document.add_to_footer(segment) else raise SegmentTypeNotDefined.new end end