Commit 67428abc authored by Marius Rackwitz's avatar Marius Rackwitz Committed by AliSoftware

[Spec] Fix PodSourceInstallerSpec after updating fixture podspec

parent e3ad7ff4
...@@ -25,7 +25,7 @@ module Pod ...@@ -25,7 +25,7 @@ module Pod
config.sandbox.store_head_pod('BananaLib') config.sandbox.store_head_pod('BananaLib')
@spec.source = { :git => SpecHelper.fixture('banana-lib'), :tag => 'v1.0' } @spec.source = { :git => SpecHelper.fixture('banana-lib'), :tag => 'v1.0' }
@installer.install! @installer.install!
@installer.specific_source[:commit].should == '0b8b4084a43c38cfe308efa076fdeb3a64d9d2bc' @installer.specific_source[:commit].should == '9c7802033af588bed9dd5cb089bc8998a65bbd29'
pod_folder = config.sandbox.pod_dir('BananaLib') pod_folder = config.sandbox.pod_dir('BananaLib')
pod_folder.should.exist pod_folder.should.exist
end end
...@@ -45,7 +45,7 @@ module Pod ...@@ -45,7 +45,7 @@ module Pod
sources = @installer.sandbox.checkout_sources sources = @installer.sandbox.checkout_sources
sources.should == { 'BananaLib' => { sources.should == { 'BananaLib' => {
:git => SpecHelper.fixture('banana-lib'), :git => SpecHelper.fixture('banana-lib'),
:commit => '0b8b4084a43c38cfe308efa076fdeb3a64d9d2bc' }, :commit => '9c7802033af588bed9dd5cb089bc8998a65bbd29' },
} }
end end
...@@ -180,13 +180,18 @@ module Pod ...@@ -180,13 +180,18 @@ module Pod
paths = @installer.send(:used_files) paths = @installer.send(:used_files)
relative_paths = paths.map { |p| p.gsub("#{temporary_directory}/", '') } relative_paths = paths.map { |p| p.gsub("#{temporary_directory}/", '') }
relative_paths.sort.should == [ relative_paths.sort.should == [
'Pods/BananaLib/Bananalib.framework',
'Pods/BananaLib/Classes/Banana.h', 'Pods/BananaLib/Classes/Banana.h',
'Pods/BananaLib/Classes/Banana.m', 'Pods/BananaLib/Classes/Banana.m',
'Pods/BananaLib/Classes/BananaLib.pch', 'Pods/BananaLib/Classes/BananaLib.pch',
'Pods/BananaLib/Classes/BananaPrivate.h', 'Pods/BananaLib/Classes/BananaPrivate.h',
'Pods/BananaLib/Classes/BananaTrace.d',
'Pods/BananaLib/LICENSE', 'Pods/BananaLib/LICENSE',
'Pods/BananaLib/README', 'Pods/BananaLib/README',
'Pods/BananaLib/Resources/logo-sidebar.png', 'Pods/BananaLib/Resources/logo-sidebar.png',
'Pods/BananaLib/Resources/sub_dir',
'Pods/BananaLib/libBananalib.a',
'Pods/BananaLib/preserve_me.txt',
] ]
end end
...@@ -204,6 +209,7 @@ module Pod ...@@ -204,6 +209,7 @@ module Pod
paths = @installer.send(:used_files) paths = @installer.send(:used_files)
relative_paths = paths.map { |p| p.gsub("#{temporary_directory}/", '') } relative_paths = paths.map { |p| p.gsub("#{temporary_directory}/", '') }
relative_paths.sort.should == [ relative_paths.sort.should == [
'Pods/BananaLib/Bananalib.framework',
'Pods/BananaLib/Classes/Banana.h', 'Pods/BananaLib/Classes/Banana.h',
'Pods/BananaLib/Classes/Banana.m', 'Pods/BananaLib/Classes/Banana.m',
'Pods/BananaLib/Classes/BananaLib.pch', 'Pods/BananaLib/Classes/BananaLib.pch',
...@@ -211,6 +217,9 @@ module Pod ...@@ -211,6 +217,9 @@ module Pod
'Pods/BananaLib/LICENSE', 'Pods/BananaLib/LICENSE',
'Pods/BananaLib/README', 'Pods/BananaLib/README',
'Pods/BananaLib/Resources/logo-sidebar.png', 'Pods/BananaLib/Resources/logo-sidebar.png',
'Pods/BananaLib/Resources/sub_dir',
'Pods/BananaLib/libBananalib.a',
'Pods/BananaLib/preserve_me.txt',
] ]
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