reafctor(logic): remove tests and accept unspecified behaviour
This commit is contained in:
parent
133689b4d3
commit
96e49d54cd
1 changed files with 0 additions and 18 deletions
|
@ -40,12 +40,6 @@ describe Logic::ChampValue do
|
|||
|
||||
it { is_expected.to be nil }
|
||||
end
|
||||
|
||||
context 'with invalid value' do
|
||||
before { champ.value = 'environ 300' }
|
||||
|
||||
it { is_expected.to be nil }
|
||||
end
|
||||
end
|
||||
|
||||
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 { 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
|
||||
|
||||
context 'dropdown tdc' do
|
||||
|
|
Loading…
Reference in a new issue