Sha256: 82977c1d8da7da57c669f84f77a7eca1efcb40a1a8cee8e2f084fbca674b37ce
Contents?: true
Size: 723 Bytes
Versions: 2
Compression:
Stored size: 723 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') module Downer describe Downer do describe "#run!" do it "when run without arguments displays a usage hint" do output = double('output') app = Application.new(output) output.should_receive(:puts).with('Usage: downer URL_SOURCE DESTINATION_DIR') app.run! end it "when run with valid arguments displays the number of files to download" do output = double('output').as_null_object app = Application.new(output) output.should_receive(:puts).with("Starting download on 4 files") app.run!(fixture_directory + "/some_images.txt", '/tmp') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
downer-0.2.2 | spec/downer/application_spec.rb |
downer-0.1.1 | spec/downer/application_spec.rb |