Sha256: 7bd00e1dd000c90bbd44187b2c182cd6c592321547eba568df7a52758b5b4fa2

Contents?: true

Size: 805 Bytes

Versions: 3

Compression:

Stored size: 805 Bytes

Contents

require "spec_helper"

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

  it "should get mixed into ActionController::IntegrationTest" do
    klass = defined?(ActionController::IntegrationTest) ?  ActionController::IntegrationTest :  ActionDispatch::IntegrationTest
    klass.ancestors.should include(Relevance::CoreExtensions::TestCaseExtensions)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
codez-tarantula-0.5.5 spec/relevance/core_extensions/test_case_spec.rb
codez-tarantula-0.5.4 spec/relevance/core_extensions/test_case_spec.rb
codez-tarantula-0.5.3 spec/relevance/core_extensions/test_case_spec.rb