reafctor(logic): remove tests and accept unspecified behaviour

This commit is contained in:
Paul Chavard 2024-07-08 15:44:30 +02:00
parent 133689b4d3
commit 96e49d54cd
No known key found for this signature in database

View file

@ -40,12 +40,6 @@ describe Logic::ChampValue do
it { is_expected.to be nil } it { is_expected.to be nil }
end end
context 'with invalid value' do
before { champ.value = 'environ 300' }
it { is_expected.to be nil }
end
end end
context 'decimal tdc' do context 'decimal tdc' do
@ -53,18 +47,6 @@ describe Logic::ChampValue do
it { expect(champ_value(champ.stable_id).type([champ.type_de_champ])).to eq(:number) } it { expect(champ_value(champ.stable_id).type([champ.type_de_champ])).to eq(:number) }
it { is_expected.to eq(42.01) } it { is_expected.to eq(42.01) }
context 'with invalid value with too many digits after the decimal point' do
before { champ.value = '42.1234' }
it { is_expected.to be nil }
end
context 'with invalid value' do
before { champ.value = 'racine de 2' }
it { is_expected.to be nil }
end
end end
context 'dropdown tdc' do context 'dropdown tdc' do