Unverified Commit 19799b24 authored by Naoto Kaneko's avatar Naoto Kaneko Committed by Samuel Giddins

Add a license type to generated acknowledgements file in plist

parent 09fc1d45
......@@ -37,6 +37,7 @@ module Pod
:Type => 'PSGroupSpecifier',
:Title => sanitize_encoding(spec.name),
:FooterText => sanitize_encoding(license),
:License => spec.license[:type],
}
end
end
......
......@@ -8,6 +8,7 @@ describe Pod::Generator::Plist do
@spec = @file_accessor.spec
@generator = Pod::Generator::Plist.new([@file_accessor])
@spec.stubs(:name).returns('POD_NAME')
@spec.stubs(:license).returns(:type => 'MIT')
@generator.stubs(:license_text).returns('LICENSE_TEXT')
end
......@@ -24,6 +25,7 @@ describe Pod::Generator::Plist do
:Type => 'PSGroupSpecifier',
:Title => 'POD_NAME',
:FooterText => 'LICENSE_TEXT',
:License => 'MIT',
}
end
......@@ -34,6 +36,7 @@ describe Pod::Generator::Plist do
:Type => 'PSGroupSpecifier',
:Title => 'POD_NAME',
:FooterText => license_text,
:License => 'MIT',
}
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