Commit f46242de authored by Samuel Giddins's avatar Samuel Giddins

[RuboCop] Fix offenses

parent 0ea57449
...@@ -324,7 +324,7 @@ module Pod ...@@ -324,7 +324,7 @@ module Pod
end end
@pod_installers ||= [] @pod_installers ||= []
pod_installer = PodSourceInstaller.new(sandbox, specs_by_platform, can_cache: installation_options.clean?) pod_installer = PodSourceInstaller.new(sandbox, specs_by_platform, :can_cache => installation_options.clean?)
@pod_installers << pod_installer @pod_installers << pod_installer
pod_installer pod_installer
end end
......
...@@ -16,7 +16,6 @@ module Pod ...@@ -16,7 +16,6 @@ module Pod
# #
attr_reader :warnings attr_reader :warnings
# Initialize a new instance # Initialize a new instance
# @param [Podfile] podfile # @param [Podfile] podfile
# The podfile to validate # The podfile to validate
......
...@@ -402,7 +402,7 @@ module Pod ...@@ -402,7 +402,7 @@ module Pod
it 'stores the targets created by the analyzer' do it 'stores the targets created by the analyzer' do
@installer.send(:analyze) @installer.send(:analyze)
@installer.aggregate_targets.map(&:name).sort.should == ["Pods-SampleProject", "Pods-SampleProjectTests"] @installer.aggregate_targets.map(&:name).sort.should == ['Pods-SampleProject', 'Pods-SampleProjectTests']
@installer.pod_targets.map(&:name).sort.should == ['JSONKit'] @installer.pod_targets.map(&:name).sort.should == ['JSONKit']
end end
...@@ -410,7 +410,7 @@ module Pod ...@@ -410,7 +410,7 @@ module Pod
@installer.update = true @installer.update = true
Installer::Analyzer.any_instance.expects(:update=).with(true) Installer::Analyzer.any_instance.expects(:update=).with(true)
@installer.send(:analyze) @installer.send(:analyze)
@installer.aggregate_targets.map(&:name).sort.should == ["Pods-SampleProject", "Pods-SampleProjectTests"] @installer.aggregate_targets.map(&:name).sort.should == ['Pods-SampleProject', 'Pods-SampleProjectTests']
@installer.pod_targets.map(&:name).sort.should == ['JSONKit'] @installer.pod_targets.map(&:name).sort.should == ['JSONKit']
end end
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