Commit fd976893 authored by Fabio Pelosin's avatar Fabio Pelosin

Updated tests

parent 726d9f59
...@@ -43,7 +43,7 @@ describe "Pod::Command" do ...@@ -43,7 +43,7 @@ describe "Pod::Command" do
path = temporary_directory + 'Bananas.podspec' path = temporary_directory + 'Bananas.podspec'
spec = Pod::Specification.from_file(path) spec = Pod::Specification.from_file(path)
spec.name.should == 'Bananas' spec.name.should == 'Bananas'
spec.license.should == 'MIT' spec.license.should == {:type=>"MIT", :file=>"LICENSE"}
spec.version.should == Pod::Version.new('1.0.0') spec.version.should == Pod::Version.new('1.0.0')
spec.summary.should == 'A short description of Bananas.' spec.summary.should == 'A short description of Bananas.'
spec.homepage.should == 'http://EXAMPLE/Bananas' spec.homepage.should == 'http://EXAMPLE/Bananas'
......
...@@ -258,9 +258,47 @@ describe "A Pod::Specification, in general," do ...@@ -258,9 +258,47 @@ describe "A Pod::Specification, in general," do
@spec.platform.should == :ios @spec.platform.should == :ios
end end
it "returns the license of the Pod's code" do it "returns the license of the Pod" do
@spec.license = {
:type => 'MIT',
:file => 'LICENSE',
:range => 1..15,
:text => 'Permission is hereby granted ...'
}
@spec.license.should == {
:type => 'MIT',
:file => 'LICENSE',
:range => 1..15,
:text => 'Permission is hereby granted ...'
}
end
it "returns the license of the Pod specified in the old format" do
@spec.license = 'MIT' @spec.license = 'MIT'
@spec.license.should == 'MIT' @spec.license.should == {
:type => 'MIT',
}
end
it "returns the documentation of the Pod" do
@spec.documentation = {
:html => 'http://EXAMPLE/#{@name}/documentation',
:atom => 'http://EXAMPLE/#{@name}/com.company.#{@name}.atom',
:appledoc => ['--project-name', '#{@name}',
'--project-company', '"Company Name"',
'--company-id', 'com.company',
'--ignore', 'Common',
'--ignore', '.m']
}
@spec.documentation.should == {
:html => 'http://EXAMPLE/#{@name}/documentation',
:atom => 'http://EXAMPLE/#{@name}/com.company.#{@name}.atom',
:appledoc => ['--project-name', '#{@name}',
'--project-company', '"Company Name"',
'--company-id', 'com.company',
'--ignore', 'Common',
'--ignore', '.m']
}
end end
it "takes a list of paths to clean" do it "takes a list of paths to clean" do
......
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