mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Improve IP blocking error message
This commit is contained in:
@@ -11,6 +11,7 @@ describe AllowedIpAddressValidator do
|
||||
ScreenedIpAddress.stubs(:should_block?).returns(true)
|
||||
validate
|
||||
expect(record.errors[:ip_address]).to be_present
|
||||
expect(record.errors[:ip_address][0]).to eq(I18n.t('user.ip_address.blocked'))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user