spec/models/hood_spec.rb in geopolitical-0.8.8 vs spec/models/hood_spec.rb in geopolitical-0.9.1

- old
+ new

@@ -6,6 +6,15 @@ end it 'should belong 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