Commit 83726076 authored by Michele's avatar Michele

File references and target installer tests updated for new sandbox layout.

parent b1d0154e
...@@ -23,11 +23,11 @@ module Pod ...@@ -23,11 +23,11 @@ module Pod
it "adds the files references of the source files the Pods project" do it "adds the files references of the source files the Pods project" do
@installer.install! @installer.install!
group_ref = @installer.pods_project['Pods/Generated/Sources/BananaLib'] group_ref = @installer.pods_project['Pods/BananaLib']
group_ref.should.be.not.nil group_ref.should.be.not.nil
file_ref = @installer.pods_project['Pods/Generated/Sources/BananaLib/Banana.m'] file_ref = @installer.pods_project['Pods/BananaLib/Banana.m']
file_ref.should.be.not.nil file_ref.should.be.not.nil
file_ref.path.should == "../../spec/fixtures/banana-lib/Classes/Banana.m" file_ref.path.should == "../../../spec/fixtures/banana-lib/Classes/Banana.m"
end end
it "adds the files references of the local Pods in a dedicated group" do it "adds the files references of the local Pods in a dedicated group" do
...@@ -45,7 +45,7 @@ module Pod ...@@ -45,7 +45,7 @@ module Pod
group_ref.should.be.not.nil group_ref.should.be.not.nil
file_ref = @installer.pods_project['Resources/BananaLib/logo-sidebar.png'] file_ref = @installer.pods_project['Resources/BananaLib/logo-sidebar.png']
file_ref.should.be.not.nil file_ref.should.be.not.nil
file_ref.path.should == "../../spec/fixtures/banana-lib/Resources/logo-sidebar.png" file_ref.path.should == "../../../spec/fixtures/banana-lib/Resources/logo-sidebar.png"
end end
it "links the build headers" do it "links the build headers" do
......
...@@ -205,7 +205,7 @@ module Pod ...@@ -205,7 +205,7 @@ module Pod
build_files = @installer.library.target.source_build_phase.files build_files = @installer.library.target.source_build_phase.files
build_file = build_files.find { |bf| bf.file_ref.name == 'Pods-dummy.m' } build_file = build_files.find { |bf| bf.file_ref.name == 'Pods-dummy.m' }
build_file.should.be.not.nil build_file.should.be.not.nil
build_file.file_ref.path.should == 'Pods-dummy.m' build_file.file_ref.path.should == '../Pods-dummy.m'
dummy = config.sandbox.root + 'Pods-dummy.m' dummy = config.sandbox.root + 'Pods-dummy.m'
dummy.read.should.include?('@interface PodsDummy_Pods') dummy.read.should.include?('@interface PodsDummy_Pods')
end end
......
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