Permalink
Browse files

Ruby-484 disable ActiveSupport::Multibyte::Chars test for JRuby

  • Loading branch information...
1 parent fc86fa3 commit ee3c57d1af6ab88275d5224d6c7faaa298d172eb @gjmurakami-10gen gjmurakami-10gen committed Oct 15, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 test/bson/bson_test.rb
View
12 test/bson/bson_test.rb
@@ -83,12 +83,14 @@ def test_valid_utf8_string
end
def test_valid_active_support_multibyte_chars
- doc = {'doc' => ActiveSupport::Multibyte::Chars.new('')}
- assert_doc_pass(doc)
+ unless RUBY_PLATFORM =~ /java/
+ doc = {'doc' => ActiveSupport::Multibyte::Chars.new('')}
+ assert_doc_pass(doc)
- bson = @encoder.serialize(doc)
- doc = @encoder.deserialize(bson)
- assert_equal doc['doc'], ''
+ bson = @encoder.serialize(doc)
+ doc = @encoder.deserialize(bson)
+ assert_equal doc['doc'], ''
+ end
end
def test_valid_utf8_key

0 comments on commit ee3c57d

Please sign in to comment.