Remove usage of assigns
in controller specs (#30195)
This commit is contained in:
parent
ae363f0555
commit
5b595b8a5a
13 changed files with 66 additions and 51 deletions
|
@ -46,8 +46,9 @@ describe AuthorizeInteractionsController do
|
|||
|
||||
get :show, params: { acct: 'http://example.com' }
|
||||
|
||||
expect(response).to have_http_status(302)
|
||||
expect(assigns(:resource)).to eq account
|
||||
expect(response)
|
||||
.to have_http_status(302)
|
||||
.and redirect_to(web_url("@#{account.pretty_acct}"))
|
||||
end
|
||||
|
||||
it 'sets resource from acct uri' do
|
||||
|
@ -58,8 +59,9 @@ describe AuthorizeInteractionsController do
|
|||
|
||||
get :show, params: { acct: 'acct:found@hostname' }
|
||||
|
||||
expect(response).to have_http_status(302)
|
||||
expect(assigns(:resource)).to eq account
|
||||
expect(response)
|
||||
.to have_http_status(302)
|
||||
.and redirect_to(web_url("@#{account.pretty_acct}"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue