Sha256: 35c66e7627ed112470c0b347194ceeb093bba24b81279dada54f79ba738da106

Contents?: true

Size: 618 Bytes

Versions: 8

Compression:

Stored size: 618 Bytes

Contents

require File.join(File.dirname(__FILE__), "../..", "example_helper.rb")
require 'relevance/core_extensions/test_case'

describe "TestCase extensions" do
  pending "can create the crawler" do
    Relevance::Tarantula::RailsIntegrationProxy.stubs(:rails_root).returns("STUB_RAILS_ROOT")
    Relevance::Tarantula::Crawler.any_instance.stubs(:rails_root).returns("STUB_RAILS_ROOT")
    tarantula_crawler(stub_everything)
  end

  pending "can crawl" do
    (crawler = mock).expects(:crawl).with("/foo")
    expects(:tarantula_crawler).returns(crawler)
    tarantula_crawl(:integration_test_stub, :url => "/foo")
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
relevance-tarantula-0.1.0 examples/relevance/core_extensions/test_case_example.rb
relevance-tarantula-0.1.1 examples/relevance/core_extensions/test_case_example.rb
relevance-tarantula-0.1.2 examples/relevance/core_extensions/test_case_example.rb
relevance-tarantula-0.1.3 examples/relevance/core_extensions/test_case_example.rb
relevance-tarantula-0.1.4 examples/relevance/core_extensions/test_case_example.rb
relevance-tarantula-0.1.5 examples/relevance/core_extensions/test_case_example.rb
tarantula-0.1.5 examples/relevance/core_extensions/test_case_example.rb
tarantula-0.1.4 examples/relevance/core_extensions/test_case_example.rb