spec/models/region_spec.rb in geopolitical-0.8.4 vs spec/models/region_spec.rb in geopolitical-0.8.6
- old
+ new
@@ -1,9 +1,12 @@
require 'spec_helper'
describe Region, type: :model do
-
it 'should create a region' do
- expect { Region.make! }.not_to raise_error
+ 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