require File.dirname(__FILE__) + '/../spec_helper' describe DocumentsHelper do it "shouldn't raise if matching not in content field" PlainTextExtractor.supported_extensions.each{|ext| it "should have an icon for .#{ext} filetype" do icon_for(ext).should_not be_nil end } end