Commit 792abfd5 authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs] Minor fix.

parent 85745020
......@@ -180,7 +180,7 @@ module Pod
# @return [Pathname] the path of the dummy source generated by CocoaPods
#
def dummy_source_path
support_files_root + "PodsDummy_#{label}.m"
support_files_root + "#{label}-Dummy.m"
end
#-------------------------------------------------------------------------#
......
......@@ -100,7 +100,7 @@ module Pod
installer = Installer.new(config.sandbox, podfile)
installer.install!
dummy = (config.project_pods_root + 'PodsDummy_Pods.m').read
dummy = (config.project_pods_root + 'Pods-Dummy.m').read
dummy.should.include?('@implementation PodsDummy_Pods')
end
......@@ -119,7 +119,7 @@ module Pod
installer = Installer.new(config.sandbox, podfile)
installer.install!
dummy = (config.project_pods_root + 'PodsDummy_Pods_AnotherTarget.m').read
dummy = (config.project_pods_root + 'Pods-AnotherTarget-Dummy.m').read
dummy.should.include?('@implementation PodsDummy_Pods_AnotherTarget')
end
......
......@@ -171,10 +171,10 @@ module Pod
it "creates a dummy source to ensure the compilation of libraries with only categories" do
@installer.install!
build_files = @installer.target.source_build_phase.files
build_file = build_files.find { |bf| bf.file_ref.name == 'PodsDummy_Pods.m' }
build_file = build_files.find { |bf| bf.file_ref.name == 'Pods-Dummy.m' }
build_file.should.be.not.nil
build_file.file_ref.path.should == 'PodsDummy_Pods.m'
dummy = config.sandbox.root + 'PodsDummy_Pods.m'
build_file.file_ref.path.should == 'Pods-Dummy.m'
dummy = config.sandbox.root + 'Pods-Dummy.m'
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