Skip to content

Commit

Permalink
Ruby-484 disable ActiveSupport::Multibyte::Chars test for JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmurakami-10gen committed Oct 15, 2012
1 parent fc86fa3 commit ee3c57d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/bson/bson_test.rb
Expand Up @@ -83,12 +83,14 @@ def test_valid_utf8_string
end

def test_valid_active_support_multibyte_chars
doc = {'doc' => ActiveSupport::Multibyte::Chars.new('aé')}
assert_doc_pass(doc)
unless RUBY_PLATFORM =~ /java/
doc = {'doc' => ActiveSupport::Multibyte::Chars.new('aé')}
assert_doc_pass(doc)

bson = @encoder.serialize(doc)
doc = @encoder.deserialize(bson)
assert_equal doc['doc'], 'aé'
bson = @encoder.serialize(doc)
doc = @encoder.deserialize(bson)
assert_equal doc['doc'], 'aé'
end
end

def test_valid_utf8_key
Expand Down

0 comments on commit ee3c57d

Please sign in to comment.