2017-03-28 13:26:25 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2018-01-16 13:34:24 +01:00
|
|
|
describe 'users/description/champs/regions.html.haml', vcr: { cassette_name: 'geoapi_regions' }, type: :view do
|
2017-03-28 13:26:25 +02:00
|
|
|
let(:champ) { create(:champ) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
render 'users/description/champs/regions.html.haml', champ: champ.decorate
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'should render regions drop down list' do
|
|
|
|
expect(rendered).to include("Normandie")
|
|
|
|
end
|
|
|
|
end
|