Modify declared for nested array and hash#2043
Merged
dblock merged 1 commit intoApr 27, 2020
Merged
Conversation
c55af12 to
8cbec94
Compare
dnesteryuk
reviewed
Apr 27, 2020
| get '/declared?first=present' | ||
| expect(last_response.status).to eq(200) | ||
| expect(JSON.parse(last_response.body)['nested']).to be_a(Hash) | ||
| expect(JSON.parse(last_response.body)['nested']).to eq({}) |
Member
There was a problem hiding this comment.
what do you think about parsing the response only once?
Contributor
Author
There was a problem hiding this comment.
sorry! I'll modify soon.
8cbec94 to
00162f5
Compare
00162f5 to
3551c67
Compare
Member
|
👍 |
This was referenced May 14, 2020
This was referenced Sep 11, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I fixed bugs of declared method.
key of options[:route_options][:params] is not considered for nested params.
I changed to these.