reenable validator on piece_justificative

This commit is contained in:
clemkeirua 2020-07-08 14:46:31 +02:00 committed by Keirua (Rebase PR Action)
parent c5af4110a4
commit 8711e8f911
3 changed files with 27 additions and 17 deletions

View file

@ -16,11 +16,7 @@ describe Champs::PieceJustificativeChamp do
end
end
# TODO: once we're running on Rails 6, re-enable the PieceJustificativeChamp validator,
# and re-enable this spec.
#
# See https://github.com/betagouv/demarches-simplifiees.fr/issues/4926
describe "validations", pending: true do
describe "validations" do
subject(:champ_pj) { build(:champ_piece_justificative) }
it { is_expected.to validate_size_of(:piece_justificative_file).less_than(Champs::PieceJustificativeChamp::MAX_SIZE) }