Sha256: a5d533294341a0876d360cb8f020e145585db0400e4886a2358849187f8dc626
Contents?: true
Size: 605 Bytes
Versions: 8
Compression:
Stored size: 605 Bytes
Contents
require File.join(File.dirname(__FILE__), "../..", "test_helper.rb") require 'relevance/core_extensions/test_case' describe "TestCase extensions" do it "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 it "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