spec/name-spotter_spec.rb in name-spotter-0.2.3 vs spec/name-spotter_spec.rb in name-spotter-0.2.4

- old
+ new

@@ -150,7 +150,14 @@ text = "What happens another called P. (LYCOSIDAE) is the species?" res = @tf.find(text) res[:names].size.should == 1 res.should == {:names=>[{:verbatim=>"(LYCOSIDAE)", :scientificName=>"Lycosidae", :offsetStart=>32, :offsetEnd=>42}]} end + + it "should find names with diacrictics" do + text = 'Mactra triangula Renieri. Fissurella nubécula Linnó.' + res = @tf.find(text) + res[:names].size.should == 2 + res.should == {:names=>[{:verbatim=>"Mactra triangula", :scientificName=>"Mactra triangula", :offsetStart=>0, :offsetEnd=>15}, {:verbatim=>"Fissurella nubécula", :scientificName=>"Fissurella nubécula", :offsetStart=>26, :offsetEnd=>44}]} + end end