reenable validator on piece_justificative
This commit is contained in:
parent
c5af4110a4
commit
8711e8f911
3 changed files with 27 additions and 17 deletions
|
@ -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) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue