Commit b79c1c97 authored by Fabio Pelosin's avatar Fabio Pelosin

[Installer] Remove duplicates form #installed_specs

parent 848f0e5e
......@@ -28,6 +28,8 @@ module Pod
#
def prefix_header_path
library.prefix_header_path
UI.warn "LibraryRepresentation#prefix_header_path is deprecated. " \
"Use the specification `prefix_header_contents` attribute."
end
alias :prefix_header_filename :prefix_header_path
......
......@@ -248,7 +248,7 @@ module Pod
pod_installer.install_docs = config.install_docs?
pod_installer.install!
@pod_installers << pod_installer
@installed_specs.concat(specs_by_platform.values.flatten)
@installed_specs.concat(specs_by_platform.values.flatten.uniq)
end
# Cleans the sources of the Pods if the config instructs to do so.
......
......@@ -174,7 +174,7 @@ module Pod
spec = fixture_spec('banana-lib/BananaLib.podspec')
library = Library.new(nil)
library.specs = [spec]
@installer.stubs(:libraries).returns([library])
@installer.stubs(:libraries).returns([library, library])
@installer.instance_variable_set(:@installed_specs, [])
Installer::PodSourceInstaller.any_instance.stubs(:install!)
@installer.send(:install_source_of_pod, 'BananaLib')
......
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