Sha256: e99d68236025ab25b87f6decea48158826b87e9b3196492b72e1bfa3f9316d1c

Contents?: true

Size: 600 Bytes

Versions: 8

Compression:

Stored size: 600 Bytes

Contents

module Relevance
  module CoreExtensions

    module 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

  end
end

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
codez-tarantula-0.5.1 lib/relevance/core_extensions/test_case.rb
codez-tarantula-0.5.0 lib/relevance/core_extensions/test_case.rb
tarantula-0.5.1 lib/relevance/core_extensions/test_case.rb
tarantula-0.5.0 lib/relevance/core_extensions/test_case.rb
tarantula-0.4.3 lib/relevance/core_extensions/test_case.rb
tarantula-0.4.2 lib/relevance/core_extensions/test_case.rb
tarantula-0.4.1 lib/relevance/core_extensions/test_case.rb
tarantula-0.4.0 lib/relevance/core_extensions/test_case.rb