Sha256: f791e4d7c2e5952e3c9e8bfcbad84b4cdea6406d0e0719edec952f1d30e31075
Contents?: true
Size: 753 Bytes
Versions: 2
Compression:
Stored size: 753 Bytes
Contents
require "spec_helper" 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 it "should get mixed into ActionController::IntegrationTest" do ActionController::IntegrationTest.ancestors.should include(Relevance::CoreExtensions::TestCaseExtensions) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tarantula-0.4.1 | spec/relevance/core_extensions/test_case_spec.rb |
tarantula-0.4.0 | spec/relevance/core_extensions/test_case_spec.rb |