Sha256: b311b46212a452c0e5b3613de74b0a9fd6addb8baad1dbca40b8907a37216221
Contents?: true
Size: 550 Bytes
Versions: 6
Compression:
Stored size: 550 Bytes
Contents
require 'spec_helper' describe Hood, type: :model do it 'should create a nation' do expect { Hood.make! }.not_to raise_error end it 'should belong to city' do expect(Hood.make(city: nil)).to_not be_valid end it 'should not to city' do expect(Hood.make(city: nil)).to_not be_valid end it 'should accept area phone code modified regex' do expect(Hood.make(phone: '115555XXXX')).to be_valid end it 'should accept area postal code modified regex' do expect(Hood.make(postal: '15123123')).to be_valid end end
Version data entries
6 entries across 6 versions & 1 rubygems