Skip to content

Commit 73581f0

Browse files
author
James Campbell
committed
Initial downloader test implemented.
1 parent a99df3d commit 73581f0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/deploy_downloader_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ module Pod
1212
describe DeployDownloader do
1313

1414
before do
15+
@podfile = Podfile.new
16+
Config.instance.stubs(:podfile).returns(@podfile)
17+
1518
@downloader = DeployDownloader.new(nil)
19+
1620
@source = MockExternalSource.new
21+
ExternalSources.stubs(:from_dependency).returns(@source)
1722
end
1823

1924
it "should download source from main repo" do
20-
ExternalSources.stubs(:from_dependency).returns(@source)
2125
@source.expects(:fetch)
22-
@downloader.download(nil)
26+
@downloader.download(Config.instance)
2327
end
2428

2529
it "should download source from external repo" do

0 commit comments

Comments
 (0)