Commit aadecd9a authored by Fabio Pelosin's avatar Fabio Pelosin

[Project] Add #resources

parent 0b264e6e
...@@ -69,6 +69,15 @@ module Pod ...@@ -69,6 +69,15 @@ module Pod
@local_pods ||= new_group('Local Pods') @local_pods ||= new_group('Local Pods')
end end
# Returns the `Local Pods` group, creating it if needed. This group is used
# to contain locally sourced pods.
#
# @return [PBXGroup] the group.
#
def resources
@resources ||= new_group('Resources')
end
# Adds a group as child to the `Pods` group namespacing subspecs. # Adds a group as child to the `Pods` group namespacing subspecs.
# #
# @param [String] spec_name # @param [String] spec_name
......
...@@ -18,6 +18,10 @@ describe Pod::Project do ...@@ -18,6 +18,10 @@ describe Pod::Project do
@project.local_pods.name.should == 'Local Pods' @project.local_pods.name.should == 'Local Pods'
end end
it "returns the `Resources` group" do
@project.resources.name.should == 'Resources'
end
it "adds a group for a specification" do it "adds a group for a specification" do
group = @project.add_spec_group('JSONKit', @project.pods) group = @project.add_spec_group('JSONKit', @project.pods)
@project.pods.children.should.include?(group) @project.pods.children.should.include?(group)
......
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