Sha256: 2ff307d9177637500d905a146e63c0b408c8dc9bae3984e440fc6dadf9b1edbb
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
require "spec/spec_helper" require "lib/stowaway/runner" describe Stowaway::Runner do before(:each) do @argv = ["."] @options = Stowaway::Options.new(@argv) @locator = Stowaway::Locator.new(@options.file_types) end def runner sweeper = Stowaway::Sweeper.new @runner ||= Stowaway::Runner.new(@options, @locator, sweeper) @runner.extend Silencer end describe "output" do it "should notify user that file location has begun" do runner.should_receive(:print).with("\nLocating files ... ") runner.should_receive(:print).any_number_of_times runner.run end it "should notify user of the total number of files that were found" do runner.should_receive(:print).with("0 files located") runner.should_receive(:print).any_number_of_times runner.run end it "should notify user that no stowaways were found when all files-to-find have been deleted" do runner.should_receive(:print).with("Zero stowaways found. ") runner.should_receive(:print).any_number_of_times runner.run end it "should tell user how awesome their cleanliness is" do runner.should_receive(:print).with("You run a tight ship.") runner.should_receive(:print).any_number_of_times runner.run end end it "should locate all assets" do @locator.should_receive(:find_all).and_return([]) runner.run end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stowaway-0.2.5 | spec/runner_spec.rb |