1
0
mirror of https://framagit.org/tykayn/mastodon.git synced 2023-08-25 08:33:12 +02:00

Fix remote follow ()

* Add coverage for remote_follow#new

* Fix reference to authorize_follows/card partial
This commit is contained in:
Matt Jankowski 2017-04-27 18:16:44 -04:00 committed by Eugen Rochko
parent ea783d3632
commit 9736753985
2 changed files with 17 additions and 1 deletions
app/views/remote_follow
spec/controllers

@ -2,7 +2,7 @@
.follow-prompt
%h2= t('remote_follow.prompt')
= render partial: 'authorize_follow/card', locals: { account: @account }
= render partial: 'authorize_follows/card', locals: { account: @account }
= simple_form_for @remote_follow, as: :remote_follow, url: account_remote_follow_path(@account) do |f|
= render 'shared/error_messages', object: @remote_follow

@ -0,0 +1,16 @@
# frozen_string_literal: true
require 'rails_helper'
describe RemoteFollowController do
render_views
describe '#new' do
it 'returns a success' do
account = Fabricate(:account)
get :new, params: { account_username: account.to_param }
expect(response).to have_http_status(:success)
end
end
end