Skip to content

Commit

Permalink
Preparing for alternative sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Campbell committed Mar 15, 2016
1 parent 815c2f6 commit 98ace2d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions spec/deploy_downloader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 20,27 @@ module Pod
end

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

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

it "should download source from main repo" do
# @source.expects(:fetch)
# @downloader.download(Config.instance)
dependency = Dependency.new("AFNetworking", { :podspec => "http://github.com/CocoaPods/Specs.git/master/Specs/AFNetworking/1.0/AFNetworking.podspec.json"})
downloader = DeployDownloader.new(dependency)

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

it "should download source from external repo" do
dependency = Dependency.new("AFNetworking", { :podspec => "http://github.com/My/Repo.git/master/Specs/AFNetworking/1.0/AFNetworking.podspec.json"})
downloader = DeployDownloader.new(dependency)

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

0 comments on commit 98ace2d

Please sign in to comment.