Sha256: a067ef376867e07cfd09d40f2534b49493417cb8c112afef635806bcb35191bf
Contents?: true
Size: 270 Bytes
Versions: 3
Compression:
Stored size: 270 Bytes
Contents
require 'spec_helper' describe Region, type: :model do it 'should create a region' do expect { Region.make! }.not_to raise_error end it 'should create it\'s own slug' do city = Region.create(name: 'Amapá') expect(city.slug).to eq('amapa') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
geopolitical-0.8.8 | spec/models/region_spec.rb |
geopolitical-0.8.7 | spec/models/region_spec.rb |
geopolitical-0.8.6 | spec/models/region_spec.rb |