Remove the unused decorator FranceConnectInformationDecorator
This commit is contained in:
parent
579fe627fa
commit
4f30e30a08
2 changed files with 0 additions and 24 deletions
|
@ -1,7 +0,0 @@
|
|||
class FranceConnectInformationDecorator < Draper::Decorator
|
||||
delegate_all
|
||||
|
||||
def gender_fr
|
||||
gender == 'female' ? 'Mme' : 'M.'
|
||||
end
|
||||
end
|
|
@ -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
|
Loading…
Reference in a new issue