Skip to content
Snippets Groups Projects
Commit 97367539 authored by Matt Jankowski's avatar Matt Jankowski Committed by Eugen Rochko
Browse files

Fix remote follow (#2547)

* Add coverage for remote_follow#new

* Fix reference to authorize_follows/card partial
parent ea783d36
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
# 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
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