spec/lib/cacher/similarity/double_levenshtone_spec.rb in picky-0.10.1 vs spec/lib/cacher/similarity/double_levenshtone_spec.rb in picky-0.10.2
- old
+ new
@@ -54,7 +54,13 @@
code = @similarity.encoded :maier
index[code].should == [:mair, :maier, :meier, :meira, :mairai]
end
end
+
+ context "alias" do
+ it "works also with Phonetic" do
+ lambda { Cacher::Similarity::Phonetic.new(1) }.should_not raise_error
+ end
+ end
end
\ No newline at end of file