There was an error while loading. Please reload this page.
1 parent a99df3d commit 73581f0Copy full SHA for 73581f0
spec/deploy_downloader_spec.rb
@@ -12,14 +12,18 @@ module Pod
12
describe DeployDownloader do
13
14
before do
15
+ @podfile = Podfile.new
16
+ Config.instance.stubs(:podfile).returns(@podfile)
17
+
18
@downloader = DeployDownloader.new(nil)
19
20
@source = MockExternalSource.new
21
+ ExternalSources.stubs(:from_dependency).returns(@source)
22
end
23
24
it "should download source from main repo" do
- ExternalSources.stubs(:from_dependency).returns(@source)
25
@source.expects(:fetch)
- @downloader.download(nil)
26
+ @downloader.download(Config.instance)
27
28
29
it "should download source from external repo" do
0 commit comments