Fix deprecation warnings on activitypub controller specs (#2357)
This commit is contained in:
parent
55e1e12b7d
commit
948dd26931
3 changed files with 6 additions and 6 deletions
|
@ -14,7 +14,7 @@ RSpec.describe Api::Activitypub::NotesController, type: :controller do
|
|||
public_status = Status.create!(account: user_alice.account, text: 'Hello world', visibility: :public)
|
||||
|
||||
@request.env['HTTP_ACCEPT'] = 'application/activity+json'
|
||||
get :show, id: public_status.id
|
||||
get :show, params: { id: public_status.id }
|
||||
end
|
||||
|
||||
it 'returns http success' do
|
||||
|
@ -50,7 +50,7 @@ RSpec.describe Api::Activitypub::NotesController, type: :controller do
|
|||
reply = Status.create!(account: user_bob.account, text: 'Hello world', in_reply_to_id: original.id, visibility: :public)
|
||||
|
||||
@request.env['HTTP_ACCEPT'] = 'application/activity+json'
|
||||
get :show, id: reply.id
|
||||
get :show, params: { id: reply.id }
|
||||
end
|
||||
|
||||
it 'returns http success' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue