mirror of https://github.com/mastodon/mastodon
				
				
				
			Fix remote follow (#2547)
* Add coverage for remote_follow#new * Fix reference to authorize_follows/card partialpull/2548/head
							parent
							
								
									ea783d3632
								
							
						
					
					
						commit
						9736753985
					
				@ -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
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue