randym/axlsx — Issue #24: Test failures on master
Author: ffmike
Created: 2012-02-09 15:07:23+00:00
State: open

1) Failure:
test_valid_document(TestContentType) [/Volumes/Macintosh HD/Data/scratch/axlsx/test/content_type/tc_content_type.rb:17]:
[Content Types].xml Invalid["Element '{http://schemas.openxmlformats.org/package/2006/content-types}Default', attribute 'ContentType': [facet 'pattern'] The value 'application/vnd.openxmlformats-package.relationships+xml' is not accepted by the pattern '(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))/((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))((\\s+)*;(\\s+)*(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))=((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+)|(\"(([\\p{IsLatin-1Supplement}\\p{IsBasicLatin}-[\\p{Cc}\u007F\"\\n\\r]]|(\\s+))|(\\\\[\\p{IsBasicLatin}]))*\"))))*)'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Default', attribute 'ContentType': 'application/vnd.openxmlformats-package.relationships+xml' is not a valid value of the atomic type '{http://schemas.openxmlformats.org/package/2006/content-types}ST_ContentType'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Default', attribute 'ContentType': [facet 'pattern'] The value 'application/xml' is not accepted by the pattern '(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))/((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))((\\s+)*;(\\s+)*(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))=((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+)|(\"(([\\p{IsLatin-1Supplement}\\p{IsBasicLatin}-[\\p{Cc}\u007F\"\\n\\r]]|(\\s+))|(\\\\[\\p{IsBasicLatin}]))*\"))))*)'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Default', attribute 'ContentType': 'application/xml' is not a valid value of the atomic type '{http://schemas.openxmlformats.org/package/2006/content-types}ST_ContentType'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Override', attribute 'ContentType': [facet 'pattern'] The value 'application/vnd.openxmlformats-officedocument.extended-properties+xml' is not accepted by the pattern '(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))/((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))((\\s+)*;(\\s+)*(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))=((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+)|(\"(([\\p{IsLatin-1Supplement}\\p{IsBasicLatin}-[\\p{Cc}\u007F\"\\n\\r]]|(\\s+))|(\\\\[\\p{IsBasicLatin}]))*\"))))*)'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Override', attribute 'ContentType': 'application/vnd.openxmlformats-officedocument.extended-properties+xml' is not a valid value of the atomic type '{http://schemas.openxmlformats.org/package/2006/content-types}ST_ContentType'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Override', attribute 'ContentType': [facet 'pattern'] The value 'application/vnd.openxmlformats-package.core-properties+xml' is not accepted by the pattern '(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))/((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))((\\s+)*;(\\s+)*(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))=((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+)|(\"(([\\p{IsLatin-1Supplement}\\p{IsBasicLatin}-[\\p{Cc}\u007F\"\\n\\r]]|(\\s+))|(\\\\[\\p{IsBasicLatin}]))*\"))))*)'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Override', attribute 'ContentType': 'application/vnd.openxmlformats-package.core-properties+xml' is not a valid value of the atomic type '{http://schemas.openxmlformats.org/package/2006/content-types}ST_ContentType'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Override', attribute 'ContentType': [facet 'pattern'] The value 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml' is not accepted by the pattern '(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))/((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))((\\s+)*;(\\s+)*(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))=((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+)|(\"(([\\p{IsLatin-1Supplement}\\p{IsBasicLatin}-[\\p{Cc}\u007F\"\\n\\r]]|(\\s+))|(\\\\[\\p{IsBasicLatin}]))*\"))))*)'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Override', attribute 'ContentType': 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml' is not a valid value of the atomic type '{http://schemas.openxmlformats.org/package/2006/content-types}ST_ContentType'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Override', attribute 'ContentType': [facet 'pattern'] The value 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml' is not accepted by the pattern '(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))/((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))((\\s+)*;(\\s+)*(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))=((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+)|(\"(([\\p{IsLatin-1Supplement}\\p{IsBasicLatin}-[\\p{Cc}\u007F\"\\n\\r]]|(\\s+))|(\\\\[\\p{IsBasicLatin}]))*\"))))*)'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Override', attribute 'ContentType': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml' is not a valid value of the atomic type '{http://schemas.openxmlformats.org/package/2006/content-types}ST_ContentType'."].
<12> expected but was
<0>.

2) Failure:
test_to_xml(TestDefault) [/Volumes/Macintosh HD/Data/scratch/axlsx/test/content_type/tc_default.rb:35]:
[Content Types].xml Invalid["Element '{http://schemas.openxmlformats.org/package/2006/content-types}Default', attribute 'ContentType': [facet 'pattern'] The value 'application/xml' is not accepted by the pattern '(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))/((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))((\\s+)*;(\\s+)*(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))=((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+)|(\"(([\\p{IsLatin-1Supplement}\\p{IsBasicLatin}-[\\p{Cc}\u007F\"\\n\\r]]|(\\s+))|(\\\\[\\p{IsBasicLatin}]))*\"))))*)'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Default', attribute 'ContentType': 'application/xml' is not a valid value of the atomic type '{http://schemas.openxmlformats.org/package/2006/content-types}ST_ContentType'."].
<2> expected but was
<0>.

3) Failure:
test_to_xml(TestOverride) [/Volumes/Macintosh HD/Data/scratch/axlsx/test/content_type/tc_override.rb:35]:
Override content type caused invalid content_type doc["Element '{http://schemas.openxmlformats.org/package/2006/content-types}Override', attribute 'ContentType': [facet 'pattern'] The value 'application/vnd.openxmlformats-officedocument.drawingml.chart+xml' is not accepted by the pattern '(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))/((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))((\\s+)*;(\\s+)*(((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+))=((([\\p{IsBasicLatin}-[\\p{Cc}\u007F\\(\\)<>@,;:\\\\\"/\\[\\]\\?=\\{\\}\\s\\t]])+)|(\"(([\\p{IsLatin-1Supplement}\\p{IsBasicLatin}-[\\p{Cc}\u007F\"\\n\\r]]|(\\s+))|(\\\\[\\p{IsBasicLatin}]))*\"))))*)'.", "Element '{http://schemas.openxmlformats.org/package/2006/content-types}Override', attribute 'ContentType': 'application/vnd.openxmlformats-officedocument.drawingml.chart+xml' is not a valid value of the atomic type '{http://schemas.openxmlformats.org/package/2006/content-types}ST_ContentType'."].
<2> expected but was
<0>.

4) Failure:
test_validation(TestPackage) [/Volumes/Macintosh HD/Data/scratch/axlsx/test/tc_package.rb:46]:
[#@,;:\\"/\[\]\?=\{\}\s\t]])+))/((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))((\s+)*;(\s+)*(((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))=((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+)|("(([\p{IsLatin-1Supplement}\p{IsBasicLatin}-[\p{Cc}"\n\r]]|(\s+))|(\\[\p{IsBasicLatin}]))*"))))*)'.>, #, #@,;:\\"/\[\]\?=\{\}\s\t]])+))/((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))((\s+)*;(\s+)*(((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))=((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+)|("(([\p{IsLatin-1Supplement}\p{IsBasicLatin}-[\p{Cc}"\n\r]]|(\s+))|(\\[\p{IsBasicLatin}]))*"))))*)'.>, #, #@,;:\\"/\[\]\?=\{\}\s\t]])+))/((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))((\s+)*;(\s+)*(((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))=((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+)|("(([\p{IsLatin-1Supplement}\p{IsBasicLatin}-[\p{Cc}"\n\r]]|(\s+))|(\\[\p{IsBasicLatin}]))*"))))*)'.>, #, #@,;:\\"/\[\]\?=\{\}\s\t]])+))/((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))((\s+)*;(\s+)*(((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))=((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+)|("(([\p{IsLatin-1Supplement}\p{IsBasicLatin}-[\p{Cc}"\n\r]]|(\s+))|(\\[\p{IsBasicLatin}]))*"))))*)'.>, #, #@,;:\\"/\[\]\?=\{\}\s\t]])+))/((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))((\s+)*;(\s+)*(((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))=((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+)|("(([\p{IsLatin-1Supplement}\p{IsBasicLatin}-[\p{Cc}"\n\r]]|(\s+))|(\\[\p{IsBasicLatin}]))*"))))*)'.>, #, #@,;:\\"/\[\]\?=\{\}\s\t]])+))/((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))((\s+)*;(\s+)*(((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))=((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+)|("(([\p{IsLatin-1Supplement}\p{IsBasicLatin}-[\p{Cc}"\n\r]]|(\s+))|(\\[\p{IsBasicLatin}]))*"))))*)'.>, #, #@,;:\\"/\[\]\?=\{\}\s\t]])+))/((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))((\s+)*;(\s+)*(((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))=((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+)|("(([\p{IsLatin-1Supplement}\p{IsBasicLatin}-[\p{Cc}"\n\r]]|(\s+))|(\\[\p{IsBasicLatin}]))*"))))*)'.>, #, #@,;:\\"/\[\]\?=\{\}\s\t]])+))/((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))((\s+)*;(\s+)*(((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))=((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+)|("(([\p{IsLatin-1Supplement}\p{IsBasicLatin}-[\p{Cc}"\n\r]]|(\s+))|(\\[\p{IsBasicLatin}]))*"))))*)'.>, #, #@,;:\\"/\[\]\?=\{\}\s\t]])+))/((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))((\s+)*;(\s+)*(((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))=((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+)|("(([\p{IsLatin-1Supplement}\p{IsBasicLatin}-[\p{Cc}"\n\r]]|(\s+))|(\\[\p{IsBasicLatin}]))*"))))*)'.>, #].
<18> expected but was
<0>.

308 tests, 932 assertions, 4 failures, 0 errors, 0 skips

Test run options: --seed 40506
rake aborted!
Command failed with status (1): [/Users/mike/.rvm/rubies/ruby-1.9.2-p290/bi...]

Phoenix-2 ruby-1.9.2-p290@axlsx ~/scratch/axlsx (master) $ gem list

*** LOCAL GEMS ***

activesupport (3.0.2)
i18n (0.6.0)
nokogiri (1.5.0)
rake (0.9.2, 0.8.7)
rmagick (2.13.1)
rubyzip (0.9.5)