-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix serialize Struct, now Struct is not a collection #135
Conversation
spec/helper_spec.rb
Outdated
describe 'serializing a single struct' do | ||
let(:person) { TestStruct.new('John', 'Dow') } | ||
|
||
it 'raise surrealize instead surrealize_collection with struct' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything seems good, but the example message is quite misleading: nothing is raised, we are just asserting that SurrealistHelper.collection?
returns false for a single struct
I suggest something like specify 'a struct is not treated as a collection' do ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Correction of behavior during serialization Struct. Now Struct is perceived as a single object, not a collection.