Commit 22ca69d7 authored by Fabio Pelosin's avatar Fabio Pelosin

[FileReferencesInstaller] rename #add_file_accessors_paths_to_pods_group to #add_paths_to_group

parent 1697d901
...@@ -64,7 +64,7 @@ module Pod ...@@ -64,7 +64,7 @@ module Pod
# #
def add_source_files_references def add_source_files_references
UI.message "- Adding source files" do UI.message "- Adding source files" do
add_file_accessors_paths_to_pods_group(:source_files, :source_files) add_paths_to_group(:source_files, :source_files)
end end
end end
...@@ -74,7 +74,7 @@ module Pod ...@@ -74,7 +74,7 @@ module Pod
# #
def add_frameworks_bundles def add_frameworks_bundles
UI.message "- Adding frameworks" do UI.message "- Adding frameworks" do
add_file_accessors_paths_to_pods_group(:vendored_frameworks, :frameworks_and_libraries) add_paths_to_group(:vendored_frameworks, :frameworks_and_libraries)
end end
end end
...@@ -84,7 +84,7 @@ module Pod ...@@ -84,7 +84,7 @@ module Pod
# #
def add_vendored_libraries def add_vendored_libraries
UI.message "- Adding libraries" do UI.message "- Adding libraries" do
add_file_accessors_paths_to_pods_group(:vendored_libraries, :frameworks_and_libraries) add_paths_to_group(:vendored_libraries, :frameworks_and_libraries)
end end
end end
...@@ -97,8 +97,8 @@ module Pod ...@@ -97,8 +97,8 @@ module Pod
# #
def add_resources def add_resources
UI.message "- Adding resources" do UI.message "- Adding resources" do
add_file_accessors_paths_to_pods_group(:resources, :resources) add_paths_to_group(:resources, :resources)
add_file_accessors_paths_to_pods_group(:resource_bundle_files, :resources) add_paths_to_group(:resource_bundle_files, :resources)
end end
end end
...@@ -128,7 +128,7 @@ module Pod ...@@ -128,7 +128,7 @@ module Pod
# #
# @return [void] # @return [void]
# #
def add_file_accessors_paths_to_pods_group(file_accessor_key, group_key) def add_paths_to_group(file_accessor_key, group_key)
file_accessors.each do |file_accessor| file_accessors.each do |file_accessor|
paths = file_accessor.send(file_accessor_key) paths = file_accessor.send(file_accessor_key)
paths.each do |path| paths.each do |path|
......
...@@ -77,10 +77,10 @@ module Pod ...@@ -77,10 +77,10 @@ module Pod
end end
end end
describe "#add_file_accessors_paths_to_pods_group" do describe "#add_paths_to_group" do
it "adds the paths of the paths of the file accessor corresponding to the given key to the Pods project" do it "adds the paths of the paths of the file accessor corresponding to the given key to the Pods project" do
@sut.send(:add_file_accessors_paths_to_pods_group, :source_files, :source_files) @sut.send(:add_paths_to_group, :source_files, :source_files)
group = config.sandbox.project.group_for_spec('BananaLib', :source_files) group = config.sandbox.project.group_for_spec('BananaLib', :source_files)
group.children.map(&:name).sort.should == ["Banana.h", "Banana.m", "BananaPrivate.h"] group.children.map(&:name).sort.should == ["Banana.h", "Banana.m", "BananaPrivate.h"]
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