Commit 5c62253a authored by Will Pragnell's avatar Will Pragnell

Made Acknowledgements Plist title configurable

parent 2c944345
...@@ -13,12 +13,16 @@ module Pod ...@@ -13,12 +13,16 @@ module Pod
def plist def plist
{ {
:Title => "Acknowledgements", :Title => plist_title,
:StringsTable => "Acknowledgements", :StringsTable => plist_title,
:PreferenceSpecifiers => licenses :PreferenceSpecifiers => licenses
} }
end end
def plist_title
"Acknowledgements"
end
def licenses def licenses
licences_array = [header_hash] licences_array = [header_hash]
@pods.each do |pod| @pods.each do |pod|
......
...@@ -14,6 +14,12 @@ describe Pod::Generator::Plist do ...@@ -14,6 +14,12 @@ describe Pod::Generator::Plist do
@plist.licenses.count.should == 3 @plist.licenses.count.should == 3
end end
it "returns a string for the plist title" do
@pods[0].unstub(:license_text)
@pods[0].unstub(:name)
@plist.plist_title.should.be.kind_of(String)
end
it "returns a correctly formed license hash for each pod" do it "returns a correctly formed license hash for each pod" do
@plist.hash_for_pod(@pods[0]).should == { @plist.hash_for_pod(@pods[0]).should == {
:Type => "PSGroupSpecifier", :Type => "PSGroupSpecifier",
......
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