Remove the unused decorator FranceConnectInformationDecorator

This commit is contained in:
gregoirenovel 2018-12-27 11:55:44 +01:00 committed by Pierre de La Morinerie
parent 579fe627fa
commit 4f30e30a08
2 changed files with 0 additions and 24 deletions

View file

@ -1,7 +0,0 @@
class FranceConnectInformationDecorator < Draper::Decorator
delegate_all
def gender_fr
gender == 'female' ? 'Mme' : 'M.'
end
end

View file

@ -1,17 +0,0 @@
require 'spec_helper'
describe FranceConnectInformationDecorator do
let(:gender) { 'female' }
let(:france_connect_information) { create :france_connect_information, gender: gender }
subject { france_connect_information.decorate.gender_fr }
context 'when france connect user is a male' do
let(:gender) { 'male' }
it { is_expected.to eq 'M.' }
end
context 'when france connect user is a female' do
it { is_expected.to eq 'Mme' }
end
end