template/tarantula_test.rb in relevance-tarantula-0.0.8.1 vs template/tarantula_test.rb in relevance-tarantula-0.1.0

- old
+ new

@@ -1,12 +1,22 @@ require "#{File.dirname(__FILE__)}/../test_helper" require "relevance/tarantula" class TarantulaTest < ActionController::IntegrationTest + # Load enough test data to ensure that there's a link to every page in your + # application. Doing so allows Tarantula to follow those links and crawl + # every page. For many applications, you can load a decent data set by + # loading all fixtures. fixtures :all def test_tarantula - post '/session', :login => 'quentin', :password => 'monkey' - follow_redirect! + # If your application requires users to log in before accessing certain + # pages, uncomment the lines below and update them to allow this test to + # log in to your application. Doing so allows Tarantula to crawl the + # pages that are only accessible to logged-in users. + # + # post '/session', :login => 'quentin', :password => 'monkey' + # follow_redirect! + tarantula_crawl(self) end end