parent
bf575a1f5e
commit
1d3e0a5060
|
@ -48,7 +48,7 @@ describe AuthorizeFollowsController do
|
||||||
get :show, params: { acct: 'http://example.com' }
|
get :show, params: { acct: 'http://example.com' }
|
||||||
|
|
||||||
expect(response).to have_http_status(:success)
|
expect(response).to have_http_status(:success)
|
||||||
expect(service).to have_received(:call).with('http://example.com')
|
expect(assigns(:account)).to eq account
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'sets account from acct uri' do
|
it 'sets account from acct uri' do
|
||||||
|
@ -60,7 +60,7 @@ describe AuthorizeFollowsController do
|
||||||
get :show, params: { acct: 'acct:found@hostname' }
|
get :show, params: { acct: 'acct:found@hostname' }
|
||||||
|
|
||||||
expect(response).to have_http_status(:success)
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue