Commit 5f12ff7c authored by Lasse Bang Mikkelsen's avatar Lasse Bang Mikkelsen

Added tests for Subversion dependencies

parent 1c0d6de2
...@@ -106,6 +106,19 @@ module Pod ...@@ -106,6 +106,19 @@ module Pod
path.should.exist? path.should.exist?
end end
it "marks a LocalPod as downloaded if it's from SvnSource" do
dependency = Dependency.new("SvnSource", :svn => "file://#{fixture('subversion-repo/trunk')}")
dependency.external_source.copy_external_source_into_sandbox(@sandbox, Platform.ios)
@sandbox.installed_pod_named('SvnSource', Platform.ios).downloaded.should.be.true
end
it "creates a copy of the podspec (SvnSource)" do
dependency = Dependency.new("SvnSource", :svn => "file://#{fixture('subversion-repo/trunk')}")
dependency.external_source.copy_external_source_into_sandbox(@sandbox, Platform.ios)
path = @sandbox.root + 'Local Podspecs/SvnSource.podspec'
path.should.exist?
end
it "creates a copy of the podspec (PodspecSource)" do it "creates a copy of the podspec (PodspecSource)" do
dependency = Dependency.new("Reachability", :podspec => fixture('integration/Reachability/Reachability.podspec').to_s) dependency = Dependency.new("Reachability", :podspec => fixture('integration/Reachability/Reachability.podspec').to_s)
dependency.external_source.copy_external_source_into_sandbox(@sandbox, Platform.ios) dependency.external_source.copy_external_source_into_sandbox(@sandbox, Platform.ios)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment