Sha256: bd8173e352990a6b6e4958ed577d80276aa5080804d70e07d5dcddabfe2c2386
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
require 'spec_helper' describe GovukMirrorer do describe "top-level run method" do it "should construct a new crawler with the configuration, and start it" do GovukMirrorer::Configurer.should_receive(:run).and_return(:a_config_hash) stub_crawler = stub("GovukMirrorer::Crawler") GovukMirrorer::Crawler.should_receive(:new).with(:a_config_hash).and_return(stub_crawler) stub_crawler.should_receive(:crawl) GovukMirrorer.run end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
govuk_mirrorer-1.3.2 | spec/govuk_mirrorer/mirrorer_spec.rb |