From 9736753985b28e0702baf8e41393d66fa3c71a2c Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 27 Apr 2017 18:16:44 -0400 Subject: Fix remote follow (#2547) * Add coverage for remote_follow#new * Fix reference to authorize_follows/card partial --- spec/controllers/remote_follow_controller_spec.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 spec/controllers/remote_follow_controller_spec.rb (limited to 'spec/controllers') diff --git a/spec/controllers/remote_follow_controller_spec.rb b/spec/controllers/remote_follow_controller_spec.rb new file mode 100644 index 000000000..1c9e6a4b6 --- /dev/null +++ b/spec/controllers/remote_follow_controller_spec.rb @@ -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 -- cgit