demarches-normaliennes/spec/views/users/description/champs/_regions.html.haml_spec.rb
2018-01-18 10:53:35 +01:00

13 lines
369 B
Ruby

require 'spec_helper'
describe 'users/description/champs/regions.html.haml', vcr: { cassette_name: 'geoapi_regions' }, type: :view do
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