]> git.openstreetmap.org Git - rails.git/blob - test/system/follows_test.rb
Add frozen_string_literal comments to ruby files
[rails.git] / test / system / follows_test.rb
1 # frozen_string_literal: true
2
3 require "application_system_test_case"
4
5 class FollowsTest < ApplicationSystemTestCase
6   test "show message when max frienships limit is exceeded" do
7     following = create(:user)
8
9     sign_in_as create(:user)
10
11     with_settings(:max_follows_per_hour => 0) do
12       visit user_path(following)
13       assert_link "Follow"
14
15       click_on "Follow"
16       assert_text "You have followed a lot of users recently"
17       assert_link "Follow"
18     end
19   end
20 end