Added model test and created helper for E.164 phone format testing

This commit is contained in:
Sergei Tsõganov 2022-01-07 16:05:13 +02:00 committed by Sergei Tsõganov
parent 8c8e9c8619
commit d361288329
3 changed files with 55 additions and 31 deletions

View file

@ -0,0 +1,14 @@
require 'test_helper'
require 'helpers/phone_format_helper_test'
class DeppContactTest < ActiveSupport::TestCase
include PhoneFormatHelperTest
setup do
@depp_contact = Depp::Contact.new
end
def test_validates_phone_format
assert_phone_format(@depp_contact)
end
end