mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Added model test and created helper for E.164 phone format testing
This commit is contained in:
parent
8c8e9c8619
commit
d361288329
3 changed files with 55 additions and 31 deletions
14
test/models/depp_contact_test.rb
Normal file
14
test/models/depp_contact_test.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue