demarches-normaliennes/spec/models/etablissement_spec.rb

18 lines
496 B
Ruby
Raw Normal View History

2015-08-17 11:51:00 +02:00
require 'spec_helper'
describe Etablissement do
describe '#geo_adresse' do
let(:etablissement) { create(:etablissement) }
subject { etablissement.geo_adresse }
it { is_expected.to eq '6 RUE RAOUL NORDLING IMMEUBLE BORA 92270 BOIS COLOMBES' }
end
2017-06-22 14:58:29 +02:00
describe '#inline_adresse' do
let(:etablissement) { create(:etablissement, nom_voie: 'green moon') }
it { expect(etablissement.inline_adresse).to eq '6 RUE green moon, IMMEUBLE BORA, 92270 BOIS COLOMBES' }
end
2015-08-17 11:51:00 +02:00
end