Fix HTTP 500 on POST /api/v1/admin/ip_blocks
(#29308)
This commit is contained in:
parent
3a762cddf6
commit
0db7558822
3 changed files with 13 additions and 1 deletions
|
@ -12,6 +12,8 @@ RSpec.describe IpBlock do
|
|||
it { is_expected.to validate_presence_of(:severity) }
|
||||
|
||||
it { is_expected.to validate_uniqueness_of(:ip) }
|
||||
|
||||
it { is_expected.to allow_values(:sign_up_requires_approval, :sign_up_block, :no_access).for(:severity) }
|
||||
end
|
||||
|
||||
describe '#to_log_human_identifier' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue