Sha256: 51c88ec4085136037026ae73ac7dccec62a7d93ee153709286990dc54ed742b8
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/test_helper') class PhoneTest < ActiveSupport::TestCase context 'active model validator' do context 'cell phone' do should 'be a valid cell phone' do phone = Phone.new(cell_phone: '8131234567', state: 'Florida') assert phone.valid?, phone.errors.full_messages.inspect end should 'be an invalid cell phone' do phone = Phone.new(cell_phone: '123456789', state: 'Florida') assert phone.invalid?, phone.errors.full_messages.inspect end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
area_code_validator-0.0.6 | test/phone_test.rb |
area_code_validator-0.0.5 | test/phone_test.rb |