Commit 4aa8509b authored by Marius Rackwitz's avatar Marius Rackwitz

Add PodTarget#resources_bundle_target_label(bundle_name)

parent 7c4a1c58
......@@ -82,6 +82,15 @@ module Pod
root_spec.name
end
# @param [String] bundle_name
# The name of the bundle product, which is given by the +spec+.
#
# @return [String] The derived name of the resource bundle target.
#
def resources_bundle_target_label(bundle_name)
"#{label}-#{bundle_name}"
end
# @return [Array<String>] The names of the Pods on which this target
# depends.
#
......
......@@ -34,6 +34,10 @@ module Pod
@pod_target.pod_name.should == 'BananaLib'
end
it 'returns the name of the resources bundle target' do
@pod_target.resources_bundle_target_label('Fruits').should == 'Pods-BananaLib-Fruits'
end
it 'returns the name of the Pods on which this target depends' do
@pod_target.dependencies.should == ['monkey']
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