-
Notifications
You must be signed in to change notification settings - Fork 3
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 issue with nil properties not being set and passing hash with string keys issue #164
Conversation
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.
These are 2 issues, can you create 2 different PRs?
@ErickFabian can you write a test please. I am not sure if this change will make any missing attribute on the model being removed. |
@javierg I've added a spec for setting nil to a property on a doc |
test/property_manager_test.rb
Outdated
|
||
class PropertyManagerTest < Test::Unit::TestCase | ||
test 'write_attribute with nil value' do | ||
doc = TestDoc.new(name: 'name') |
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.
please add more properties, other than the one being updated
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.
Fixes: