require 'spec_helper' describe Preprocessor::Stemming do it_behaves_like 'a preprocessor' let(:preprocessor) { Preprocessor::Stemming.new } let(:job) { FactoryGirl.build(:job) } let(:jobs) { [job] } it "should reduce words to their stem" do preprocessor.clean_description("developer engineering").should == %w(develop engin) end end