Commit f0a2e213 authored by Marius Rackwitz's avatar Marius Rackwitz

[Spec Analyzer] Don't #analyze twice

parent 048d0ab3
...@@ -268,9 +268,9 @@ module Pod ...@@ -268,9 +268,9 @@ module Pod
end end
end end
analyzer = Pod::Installer::Analyzer.new(config.sandbox, podfile) analyzer = Pod::Installer::Analyzer.new(config.sandbox, podfile)
analyzer.analyze result = analyzer.analyze
analyzer.analyze.targets.flat_map { |at| at.pod_targets.map { |pt| "#{at.name}/#{pt.name}" } }.sort.should == %w( result.targets.flat_map { |at| at.pod_targets.map { |pt| "#{at.name}/#{pt.name}" } }.sort.should == %w(
Pods-SampleProject-TestRunner/BananaLib Pods-SampleProject-TestRunner/BananaLib
Pods-SampleProject-TestRunner/monkey Pods-SampleProject-TestRunner/monkey
Pods-SampleProject/BananaLib Pods-SampleProject/BananaLib
...@@ -299,9 +299,9 @@ module Pod ...@@ -299,9 +299,9 @@ module Pod
end end
end end
analyzer = Pod::Installer::Analyzer.new(config.sandbox, podfile) analyzer = Pod::Installer::Analyzer.new(config.sandbox, podfile)
analyzer.analyze result = analyzer.analyze
analyzer.analyze.targets.flat_map { |at| at.pod_targets.map { |pt| "#{at.name}/#{pt.name}" } }.sort.should == %w( result.targets.flat_map { |at| at.pod_targets.map { |pt| "#{at.name}/#{pt.name}" } }.sort.should == %w(
Pods-CLITool/monkey-OSX Pods-CLITool/monkey-OSX
Pods-SampleProject-TestRunner/BananaLib-Pods-SampleProject-TestRunner Pods-SampleProject-TestRunner/BananaLib-Pods-SampleProject-TestRunner
Pods-SampleProject-TestRunner/monkey-iOS Pods-SampleProject-TestRunner/monkey-iOS
...@@ -327,9 +327,9 @@ module Pod ...@@ -327,9 +327,9 @@ module Pod
end end
end end
analyzer = Pod::Installer::Analyzer.new(config.sandbox, podfile) analyzer = Pod::Installer::Analyzer.new(config.sandbox, podfile)
analyzer.analyze result = analyzer.analyze
analyzer.analyze.targets.flat_map { |at| at.pod_targets.map { |pt| "#{at.name}/#{pt.name}" } }.sort.should == %w( result.targets.flat_map { |at| at.pod_targets.map { |pt| "#{at.name}/#{pt.name}" } }.sort.should == %w(
Pods-SampleProject-TestRunner/BananaLib-Pods-SampleProject-TestRunner Pods-SampleProject-TestRunner/BananaLib-Pods-SampleProject-TestRunner
Pods-SampleProject-TestRunner/monkey-Pods-SampleProject-TestRunner Pods-SampleProject-TestRunner/monkey-Pods-SampleProject-TestRunner
Pods-SampleProject/BananaLib-Pods-SampleProject Pods-SampleProject/BananaLib-Pods-SampleProject
......
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