Skip to content
Snippets Groups Projects
Commit 1d3e0a50 authored by Akihiko Odaki's avatar Akihiko Odaki Committed by Eugen Rochko
Browse files

Spec AuthorizeFollowsController assigns @account (#3246)

@account is used by the view.
parent bf575a1f
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ describe AuthorizeFollowsController do
get :show, params: { acct: 'http://example.com' }
expect(response).to have_http_status(:success)
expect(service).to have_received(:call).with('http://example.com')
expect(assigns(:account)).to eq account
end
it 'sets account from acct uri' do
......@@ -60,7 +60,7 @@ describe AuthorizeFollowsController do
get :show, params: { acct: 'acct:found@hostname' }
expect(response).to have_http_status(:success)
expect(service).to have_received(:call).with('found@hostname')
expect(assigns(:account)).to eq account
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment