Improve naming of changeset comment rate limit settings
This commit is contained in:
parent
a99450f558
commit
e210b4efbf
3 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue