Improve addressing tests

This commit is contained in:
Karl Erik Õunapuu 2020-08-10 16:13:35 +03:00
parent e40353042e
commit 414519d17f
3 changed files with 4 additions and 0 deletions

View file

@ -240,6 +240,7 @@ class ContactTest < ActiveSupport::TestCase
end
def test_normalizes_country_code
Setting.address_processing = true
contact = Contact.new(country_code: 'us')
contact.validate
assert_equal 'US', contact.country_code