Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support for manifests with empty values

  • Loading branch information...
commit 9de029d148cae995dfb3cf45bbf94034417fb691 1 parent 71b7496
Antoine Toulme authored
Showing with 15 additions and 0 deletions.
  1. +7 −0 spec/invalid_manifest.MF
  2. +8 −0 spec/manifest_spec.rb
7 spec/invalid_manifest.MF
View
@@ -0,0 +1,7 @@
+Implementation-Vendor: Apaxhe Softfare Woundation
+Manifest-Version: 1.0
+Build-By: release
+Created-By: Puildr
+Build-Jdk: 1.5.0_17
+Implementation-Version:
+Implementation-Title: Woot! Da missing Jar
8 spec/manifest_spec.rb
View
@@ -32,3 +32,11 @@
@sections.first["Require-Bundle"]["org.eclipse.core.expressions"]["bundle-version"].should eql("\"[3.2.0,4.0.0)\"")
end
end
+
+describe 'able to parse an invalid manifest' do
+
+ it 'should read a manifest with no value for an entry' do
+ lambda {Manifest.read(File.open("#{File.dirname(__FILE__)}/invalid_manifest.MF").read)}.should_not raise_error
+ end
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.