Skip to content

Commit

Permalink
support for manifests with empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Sep 11, 2009
1 parent 71b7496 commit 9de029d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/invalid_manifest.MF
Original file line number Original file line Diff line number Diff line change
@@ -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 changes: 8 additions & 0 deletions spec/manifest_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@
@sections.first["Require-Bundle"]["org.eclipse.core.expressions"]["bundle-version"].should eql("\"[3.2.0,4.0.0)\"") @sections.first["Require-Bundle"]["org.eclipse.core.expressions"]["bundle-version"].should eql("\"[3.2.0,4.0.0)\"")
end end
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

0 comments on commit 9de029d

Please sign in to comment.