Skip to content

Commit

Permalink
Add a quick test for scaled max flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Undo1 committed May 23, 2018
1 parent c6c9e24 commit ea4518d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/integration/flagging_test.rb
Expand Up @@ -231,4 +231,11 @@ def setup_user_with_permissive_flag_settings(user)
assert_requested @flag_options_stub, at_least_times: 1
assert_not_requested @flag_submit_stub
end

test 'should respect scaled max flag setting' do
FlagSetting.find_by(name: 'scaled_max_flags').update(value: '0,100,100,100,100,100')

@post.autoflag
assert_requested @flag_submit_stub, times: 1
end
end

0 comments on commit ea4518d

Please sign in to comment.