Skip to content
Browse files

typo

  • Loading branch information...
1 parent 03edb09 commit f87d6214df7ec3b592fb9c2a4d01426c5d74c4e3 Anders Törnqvist committed Apr 19, 2009
Showing with 15 additions and 1 deletion.
  1. +15 −1 templates/bdd_stack.rb
View
16 templates/bdd_stack.rb
@@ -145,7 +145,7 @@
file 'test/tarantula/tarantula_test.rb' do
<<-CODE
-require '#{File.dirname(__FILE__)}/../test_helper'
+require 'test_helper'
require 'relevance/tarantula'
class TarantulaTest < ActionController::IntegrationTest
@@ -166,6 +166,20 @@ def test_tarantula
tarantula_crawl(self)
end
+
+ def test_tarantula_with_tidy
+ # If you want to set custom options, you can get access to the crawler
+ # and set properties before running it. For example, this would turn on HTMLTidy.
+ #
+ # post '/session', :login => 'kilgore', :password => 'trout'
+ # assert_response :redirect
+ # assert_redirected_to '/'
+ # follow_redirect!
+
+ # t = tarantula_crawler(self)
+ # t.handlers << Relevance::Tarantula::TidyHandler.new
+ # t.crawl '/'
+ end
end
CODE
end

0 comments on commit f87d621

Please sign in to comment.
Something went wrong with that request. Please try again.