Fix TwitterAds::Creative::PromotedTweet#save (#239)#240
Conversation
* Fix invalid converting params
|
Hey @bugcloud - Thanks for making this change. It looks like there's a couple linting errors that were detected. Could you resolve those and commit your changes? |
|
@tushdante Thank you for replying. I fixed a lint error. f64ee61 BeforeAfter |
tushdante
left a comment
There was a problem hiding this comment.
LGTM! Just wanted to confirm the description for the test
| expect { subject.save }.to raise_error(TwitterAds::ClientError) | ||
| end | ||
|
|
||
| it 'converts params[:tweet_id] to params[:tweet_ids]' do |
There was a problem hiding this comment.
I believe this converts params[:tweet_ids] to params[:tweet_id]
There was a problem hiding this comment.
Oh really?
It seems that TwitterAds::Creative::PromotedTweet#save set params[:tweet_ids] from params[:tweet_id] .
(I followed this source code comment.)
https://github.com/twitterdev/twitter-ruby-ads-sdk/blob/master/lib/twitter-ads/creative/promoted_tweet.rb#L49
I have rewritten this description more clearly 🙇 eb4adb2
Issue Type: Bug
Fixes: #239
Changes Included:
Check List: