Autofix Rubocop Rails/ResponseParsedBody (#24051)
This commit is contained in:
parent
c7cd891e86
commit
90beba57d8
4 changed files with 3 additions and 12 deletions
|
@ -41,7 +41,7 @@ describe FollowingAccountsController do
|
|||
context 'when format is json' do
|
||||
subject(:response) { get :index, params: { account_username: alice.username, page: page, format: :json } }
|
||||
|
||||
subject(:body) { JSON.parse(response.body) }
|
||||
subject(:body) { response.parsed_body }
|
||||
|
||||
context 'with page' do
|
||||
let(:page) { 1 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue