following_accounts_spec.rb 306 B

12345678910111213
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe 'FollowingAccountsController' do
  4. describe 'The following_accounts route' do
  5. it "returns a http 'moved_permanently' code" do
  6. get '/users/:username/following'
  7. expect(response).to have_http_status(301)
  8. end
  9. end
  10. end