1 # frozen_string_literal: true
 
   3 require "application_system_test_case"
 
   5 class FollowsTest < ApplicationSystemTestCase
 
   6   test "show message when max frienships limit is exceeded" do
 
   7     following = create(:user)
 
   9     sign_in_as create(:user)
 
  11     with_settings(:max_follows_per_hour => 0) do
 
  12       visit user_path(following)
 
  16       assert_text "You have followed a lot of users recently"