Improve naming of changeset comment rate limit settings

This commit is contained in:
Tom Hughes 2023-08-30 18:25:06 +01:00
parent a99450f558
commit e210b4efbf
3 changed files with 8 additions and 6 deletions

View file

@ -140,8 +140,8 @@ module Api
auth_header = basic_authorization_header user.email, "test"
assert_difference "ChangesetComment.count", Settings.min_changeset_comments_per_hour do
1.upto(Settings.min_changeset_comments_per_hour) do |count|
assert_difference "ChangesetComment.count", Settings.initial_changeset_comments_per_hour do
1.upto(Settings.initial_changeset_comments_per_hour) do |count|
post changeset_comment_path(:id => changeset, :text => "Comment #{count}"), :headers => auth_header
assert_response :success
end