Sha256: 9f3b0b007a330ea53a2954dddc7c7200c2d30fd80a958bae0d57a60b8f850bd9

Contents?: true

Size: 580 Bytes

Versions: 13

Compression:

Stored size: 580 Bytes

Contents

require 'action_controller/integration'

module Relevance::CoreExtensions::TestCaseExtensions

  def tarantula_crawl(integration_test, options = {})
    url = options[:url] || "/"
    t = tarantula_crawler(integration_test, options)
    t.crawl url
  end
  
  def tarantula_crawler(integration_test, options = {})
    Relevance::Tarantula::RailsIntegrationProxy.rails_integration_test(integration_test, options)
  end
  
end

if defined? ActionController::IntegrationTest
  ActionController::IntegrationTest.class_eval { include Relevance::CoreExtensions::TestCaseExtensions }
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
relevance-tarantula-0.1.6 lib/relevance/core_extensions/test_case.rb
relevance-tarantula-0.1.7 lib/relevance/core_extensions/test_case.rb
relevance-tarantula-0.1.8 lib/relevance/core_extensions/test_case.rb
relevance-tarantula-0.2.0 lib/relevance/core_extensions/test_case.rb
relevance-tarantula-0.2.1 lib/relevance/core_extensions/test_case.rb
relevance-tarantula-0.3.2 lib/relevance/core_extensions/test_case.rb
relevance-tarantula-0.3.3 lib/relevance/core_extensions/test_case.rb
romanbsd-tarantula-0.1.8 lib/relevance/core_extensions/test_case.rb
romanbsd-tarantula-0.2.0 lib/relevance/core_extensions/test_case.rb
panmind-tarantula-0.3.3 lib/relevance/core_extensions/test_case.rb
tarantula-0.3.3 lib/relevance/core_extensions/test_case.rb
tarantula-0.1.8 lib/relevance/core_extensions/test_case.rb
tarantula-0.2.0 lib/relevance/core_extensions/test_case.rb