Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
None
-
Fully Compatible
Description
The driver round-trips symbol values in hashes:
butler% irb -rmongo
|
irb(main):001:0> Hash.from_bson({foo: :bar}.to_bson)
|
=> {"foo"=>:bar}
|
|
|
This behavior is different from that of bson-ruby:
butler% irb -rbson
|
irb(main):001:0> Hash.from_bson({foo: :bar}.to_bson)
|
=> {"foo"=>"bar"}
|
As far as I can see there are no tests for this. This ticket is to add the missing test coverage.
Attachments
Issue Links
- clones
-
MONGOID-4839 Add test coverage for symbol round-tripping in Hash field values
-
- Closed
-
- is related to
-
RUBY-2122 Test Symbol de/serialization with its bson_type configured to both string and symbol
-
- Closed
-
- links to