Commit 25919883 authored by Samuel Ford's avatar Samuel Ford

try to get test wrapped around absolute path

parent 80569fde
...@@ -297,8 +297,7 @@ module Pod ...@@ -297,8 +297,7 @@ module Pod
pod_names.each do |pod_name| pod_names.each do |pod_name|
local = sandbox.local?(pod_name) local = sandbox.local?(pod_name)
path = sandbox.pod_dir(pod_name) path = sandbox.pod_dir(pod_name)
was_absolute = sandbox.local_path_was_absolute?(pod_name) @pods_project.add_pod_group(pod_name, path, local, local )
@pods_project.add_pod_group(pod_name, path, local, was_absolute)
end end
if config.podfile_path if config.podfile_path
......
...@@ -247,6 +247,13 @@ module Pod ...@@ -247,6 +247,13 @@ module Pod
@installer.pods_project.class.should == Pod::Project @installer.pods_project.class.should == Pod::Project
end end
it "set the path of the Pod group to an absolute path if local" do
podfile_path = Pathname.new('/Podfile')
config.stubs(:podfile_path).returns(podfile_path)
@installer.send(:prepare_pods_project)
@installer.pods_project['Podfile'].path.should == podfile_path
end
it "adds the Podfile to the Pods project" do it "adds the Podfile to the Pods project" do
config.stubs(:podfile_path).returns(Pathname.new('/Podfile')) config.stubs(:podfile_path).returns(Pathname.new('/Podfile'))
@installer.send(:prepare_pods_project) @installer.send(:prepare_pods_project)
......
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