Sha256: 1c6fa8aa8a5b32c54971dd45c37e056adeb0bf90e8234b955d87721d494eff68

Contents?: true

Size: 749 Bytes

Versions: 3

Compression:

Stored size: 749 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 }
elsif defined? ActionDispatch::IntegrationTest
  ActionDispatch::IntegrationTest.class_eval { include Relevance::CoreExtensions::TestCaseExtensions }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
codez-tarantula-0.5.5 lib/relevance/core_extensions/test_case.rb
codez-tarantula-0.5.4 lib/relevance/core_extensions/test_case.rb
codez-tarantula-0.5.3 lib/relevance/core_extensions/test_case.rb