spec/english_spec.rb in open-nlp-0.1.1 vs spec/english_spec.rb in open-nlp-0.1.2
- old
+ new
@@ -27,11 +27,11 @@
tokens = tokenizer.tokenize(sent)
tags = tagger.tag(tokens)
OpenNLP.models[:pos_tagger].get_pos_model.to_s
.index('opennlp.perceptron.PerceptronModel').should_not be_nil
-
- tags.should eql ["DT", "NN", "IN", "DT", "NN", "VBD", "VBN", "IN", "PRP$", "NNS", "."]
+
+ tags.to_a.should eql ["DT", "NN", "IN", "DT", "NN", "VBD", "VBN", "IN", "PRP$", "NNS", "."]
end
end
context "when a class is loaded through the #load_class method" do