Skip to content

Commit

Permalink
Re-enable some checks for extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Jun 15, 2015
1 parent f669ff2 commit dcc89b9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec/extractor_spec.rb
Expand Up @@ -123,7 +123,6 @@
end

describe Oddb2xml::ZurroseExtractor do
if false
context 'when transfer.dat is empty' do
subject { Oddb2xml::ZurroseExtractor.new("") }
it { expect(subject.to_hash).to be_empty }
Expand Down Expand Up @@ -200,11 +199,10 @@
DAT
Oddb2xml::ZurroseExtractor.new(dat, true)
end
#it { expect(subject.to_hash.keys.first).to eq("7680316950157") }
it { expect(subject.to_hash.keys.first).to eq("0000008807890") }
it "should set the correct SALECD cmut code" do expect(subject.to_hash.values.first[:cmut]).to eq("2") end
it "should set the correct SALECD description" do expect(subject.to_hash.values.first[:description]).to eq("Ethacridin lactat 1‰ 100ml") end
end if false
end
it "should set the correct SALECD description" do expect(subject.to_hash.values.first[:description]).to match(/Ethacridin lactat 1.+ 100ml/) end
end
context 'when parsing examples' do
subject do
filename = File.expand_path(File.join(__FILE__, '..', 'data', 'zurrose_transfer.dat'))
Expand Down

0 comments on commit dcc89b9

Please sign in to comment.