Bladeren bron

Spec AuthorizeFollowsController assigns @account (#3246)

@account is used by the view.
master
Akihiko Odaki 7 jaren geleden
committed by Eugen Rochko
bovenliggende
commit
1d3e0a5060
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +2
    -2
      spec/controllers/authorize_follows_controller_spec.rb

+ 2
- 2
spec/controllers/authorize_follows_controller_spec.rb Bestand weergeven

@@ -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


Laden…
Annuleren
Opslaan