Skip to content

Commit

Permalink
Initial downloader test implemented.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Campbell committed Mar 15, 2016
1 parent a99df3d commit 73581f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/deploy_downloader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 12,18 @@ module Pod
describe DeployDownloader do

before do
@podfile = Podfile.new
Config.instance.stubs(:podfile).returns(@podfile)

@downloader = DeployDownloader.new(nil)

@source = MockExternalSource.new
ExternalSources.stubs(:from_dependency).returns(@source)
end

it "should download source from main repo" do
ExternalSources.stubs(:from_dependency).returns(@source)
@source.expects(:fetch)
@downloader.download(nil)
@downloader.download(Config.instance)
end

it "should download source from external repo" do
Expand Down

0 comments on commit 73581f0

Please sign in to comment.