Remove the proxy value_for_export method
Overload for_export instead
This commit is contained in:
parent
7cd50531cf
commit
9e42190148
8 changed files with 24 additions and 28 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue