spec/extractor_spec.rb in oddb2xml-1.7.9 vs spec/extractor_spec.rb in oddb2xml-1.8.0
- old
+ new
@@ -88,13 +88,13 @@
expect(@packs[1]).to eq("00696")
}
end
context 'can parse swissmedic_orphans.xls' do
it {
- filename = File.join(File.dirname(__FILE__), 'data/swissmedic_orphans.xls')
+ filename = File.join(File.dirname(__FILE__), 'data/swissmedic_orphan.xlsx')
expect(File.exists?(filename)).to eq(true), "File #{filename} must exists"
@packs = Oddb2xml::SwissmedicExtractor.new(filename, :orphan).to_arry
- expect(@packs.size).to eq(72)
+ expect(@packs.size).to eq(79)
expect(@packs.first).to eq("62132")
expect(@packs[7]).to eq("00687")
}
end
end