Skip to content

Commit

Permalink
Fixed a failing test in spec/server/doc_server_serialize_spec.rb. Win…
Browse files Browse the repository at this point in the history
…dows seems to use the Windows-1252 encoding for filenames instead of UTF-8 so the binary dump of special characters will be different.
  • Loading branch information
DavidEGrayson committed Dec 8, 2013
1 parent 2471626 commit caed076
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/server/doc_server_serializer_spec.rb
Expand Up @@ -44,7 +44,11 @@

it "should handle unicode data" do
file = CodeObjects::ExtraFileObject.new("test\u0160", '')
@serializer.serialized_path(file).should == 'file/test_C5A0'
if file.name.encoding == Encoding.find("Windows-1252")
@serializer.serialized_path(file).should == 'file/test_8A'
else
@serializer.serialized_path(file).should == 'file/test_C5A0'
end
end if defined?(::Encoding)
end
end

0 comments on commit caed076

Please sign in to comment.