Remove the proxy value_for_export method

Overload for_export instead
This commit is contained in:
gregoirenovel 2018-12-28 15:46:38 +01:00
parent 7cd50531cf
commit 9e42190148
8 changed files with 24 additions and 28 deletions

View file

@ -104,19 +104,19 @@ describe Champ do
context 'if yes' do
let(:value) { 'true' }
it { expect(champ.for_export).to eq('oui') }
it { expect(champ.for_export).to eq('Oui') }
end
context 'if no' do
let(:value) { 'false' }
it { expect(champ.for_export).to eq('non') }
it { expect(champ.for_export).to eq('Non') }
end
context 'if nil' do
let(:value) { nil }
it { expect(champ.for_export).to eq(nil) }
it { expect(champ.for_export).to eq('non') }
end
end