Sha256: badca96914ca60ee37d7f8562142a603cf70369681b60c007df2c50b817d4d1f
Contents?: true
Size: 593 Bytes
Versions: 9
Compression:
Stored size: 593 Bytes
Contents
require 'relevance/tarantula' require 'test_helper' class SpiderTest < ActionDispatch::IntegrationTest fixtures :all @@to_skip = [ /^\/(posts|users)\/\d+(\/edit)?$/, ] def test_users t = tarantula_crawler(self) #t.handlers << Relevance::Tarantula::TidyHandler.new t.crawl_timeout = 5.seconds t.skip_uri_patterns += @@to_skip t.crawl '/users' end def test_posts t = tarantula_crawler(self) #t.handlers << Relevance::Tarantula::TidyHandler.new t.crawl_timeout = 5.seconds t.skip_uri_patterns += @@to_skip t.crawl '/posts' end end
Version data entries
9 entries across 9 versions & 1 rubygems