diff --git a/lib/polecat.rb b/lib/polecat.rb index a15bbcc..2204385 100644 --- a/lib/polecat.rb +++ b/lib/polecat.rb @@ -8,5 +8,4 @@ module Polecat require 'polecat/index_searcher' require 'polecat/query' require 'polecat/term' - require 'polecat/stemmer' end diff --git a/lib/polecat/stemmer/simple.rb b/lib/polecat/stemmer/simple.rb index dbeacf1..a12f911 100644 --- a/lib/polecat/stemmer/simple.rb +++ b/lib/polecat/stemmer/simple.rb @@ -4,7 +4,7 @@ module Polecat # This class can be used for cleaning strings in the most simple way. If it # does not do, what you intent it to do, inherit from Polecat::Stemmer and # implement your own. - class SimpleStemmer < Polecat::Stemmer + class SimpleStemmer def stem word if word.class == Array word.each {|w| self.stem w } diff --git a/spec/simple_stemmer/new_spec.rb b/spec/simple_stemmer/new_spec.rb index 0c4536d..f7a9e74 100644 --- a/spec/simple_stemmer/new_spec.rb +++ b/spec/simple_stemmer/new_spec.rb @@ -5,8 +5,4 @@ describe Polecat::SimpleStemmer do it "creates a new SimpleStemmer" do subject.class.should be(Polecat::SimpleStemmer) end - - it "is a stemmer" do - subject.kind_of?(Polecat::Stemmer).should be(true) - end end