mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 09:45:11 +02:00
parent
90ed23f64d
commit
b6ecae6a35
41 changed files with 1239 additions and 61 deletions
|
@ -21,4 +21,13 @@ class ContactPostalAddressTest < ActiveSupport::TestCase
|
|||
@contact.country_code = 'invalid'
|
||||
assert @contact.valid?
|
||||
end
|
||||
|
||||
def test_state_is_optional_when_address_is_enabled
|
||||
Setting.address_processing = true
|
||||
contact = contacts(:william)
|
||||
assert contact.valid?
|
||||
|
||||
contact.state = ''
|
||||
assert contact.valid?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue