spec/trufflepig/search_spec.rb in trufflepig-0.2.10 vs spec/trufflepig/search_spec.rb in trufflepig-0.2.11

- old
+ new

@@ -53,9 +53,20 @@ it "finds a truffle" do @search.results.collect{|f| f["id"] }.must_include "video" end end + + describe "non utf-8 encoded file" do + before do + @search = Trufflepig::Search.new "#{dummy_app_path}/latin1_encoded.html" + @search.perform + end + + it "finds a truffle" do + @search.results.collect{|f| f["id"] }.must_include "video" + end + end end describe "with directory path" do before do @search = Trufflepig::Search.new dummy_app_path