-
Notifications
You must be signed in to change notification settings - Fork 16
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
Omit probability when serializing opportunity #82
Omit probability when serializing opportunity #82
Conversation
Thanks @whitecl! It seems we are missing |
If not, no problem. I can also add it. |
@@ -157,6 +157,18 @@ | |||
end | |||
end | |||
|
|||
describe "#to_capsule_json" do | |||
let(:opportunity) { Fabricate.build(:opportunity, value: 23.0, currency: 'USD') } |
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.
Line is too long. [85/80]
0d3140d
to
3bd00bd
Compare
Added, let me know if this is what you were looking for. |
Looks great. Just one little thing; It would be cool if you could also assert |
Great! |
Omit probability when serializing opportunity
I get the following when attempting to send updates to an Opportunity, even when the CapsuleCRM::Opportunity has no modifications.
CapsuleCRM::Errors::BadRequest:
value not formatted as a number
I've found that omitting the probability key from the update json amends this.