You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describeNeographydosubject{Neography::Rest.new({:port=>7475,:log_enabled=>false})}describe'create_node'doit'should not convert strings to symbol'donode=subject.create_node({:text=>':1456'})node['data']['text'].class.should == String# fails! expected: String got: Symbol (using ==)node['data']['text'].should == ':1456'endendend
The string is correctly stored as ':1456' in the database, but I expect it to be returned as a string and not to be converted to a ruby-symbol. I analyzed it on get_node() and I saw that the Oj-library is doing the deserialization but I couldn't see how I could override that behaviour easily.
How could I change that behaviour? Shouldn't neography always return strings?
Cheers
Jorg
The text was updated successfully, but these errors were encountered:
Following tests fails
The string is correctly stored as ':1456' in the database, but I expect it to be returned as a string and not to be converted to a ruby-symbol. I analyzed it on get_node() and I saw that the Oj-library is doing the deserialization but I couldn't see how I could override that behaviour easily.
How could I change that behaviour? Shouldn't neography always return strings?
Cheers
Jorg
The text was updated successfully, but these errors were encountered: