Skip to content

Commit

Permalink
External source test.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Campbell committed Mar 15, 2016
1 parent e43add8 commit 815c2f6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions spec/deploy_downloader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 15,21 @@ module Pod
@podfile = Podfile.new
Config.instance.stubs(:podfile).returns(@podfile)

@dependency = Dependency.new("Pod", { :podspec => ""})
@downloader = DeployDownloader.new(@dependency)

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

it "should download source from main repo" do
it "should external source outside of repo" do
dependency = Dependency.new("AFNetworkin", { :git => "https://github.com/gowalla/AFNetworking.git"})
downloader = DeployDownloader.new(dependency)

@source.expects(:fetch)
@downloader.download(Config.instance)
downloader.download(Config.instance)
end

it "should download source from main repo" do
# @source.expects(:fetch)
# @downloader.download(Config.instance)
end

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

0 comments on commit 815c2f6

Please sign in to comment.