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