spec/models/region_spec.rb in geopolitical-0.8.8 vs spec/models/region_spec.rb in geopolitical-0.9.1
- old
+ new
@@ -7,6 +7,14 @@
it 'should create it\'s own slug' do
city = Region.create(name: 'Amapá')
expect(city.slug).to eq('amapa')
end
+
+ it 'should accept area phone code modified regex' do
+ expect(Region.make(phone: '88XXXXXXXX')).to be_valid
+ end
+
+ it 'should accept area postal code modified regex' do
+ expect(Region.make(postal: '15XXXXXX')).to be_valid
+ end
end