Add YandexBot to our list of crawlers

This commit is contained in:
Robin Ward
2016-07-26 13:21:13 -04:00
parent de99853dee
commit 2a4006fe0c
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ describe CrawlerDetection do
expect(described_class.crawler?("facebookexternalhit/1.1 (+http(s)://www.facebook.com/externalhit_uatext.php)")).to eq(true)
expect(described_class.crawler?("Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)")).to eq(true)
expect(described_class.crawler?("Baiduspider+(+http://www.baidu.com/search/spider.htm)")).to eq(true)
expect(described_class.crawler?("Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)")).to eq(true)
end
it "returns false for non-crawler user agents" do