diff --git a/app/models/question_glisser_deposer.rb b/app/models/question_glisser_deposer.rb index 20fdb494b..95e096418 100644 --- a/app/models/question_glisser_deposer.rb +++ b/app/models/question_glisser_deposer.rb @@ -13,7 +13,7 @@ def as_json(_options = nil) def base_json slice(:id, :nom_technique, :description).tap do |json| - json['type'] = 'glisser_deposer_billets' + json['type'] = 'glisser-deposer-billets' json['illustration'] = cdn_for(illustration) if illustration.attached? json['modalite_reponse'] = transcription_modalite_reponse&.ecrit json['intitule'] = transcription_intitule&.ecrit diff --git a/spec/models/question_glisser_deposer_spec.rb b/spec/models/question_glisser_deposer_spec.rb index 0f4f44b0a..1d4d8dfff 100644 --- a/spec/models/question_glisser_deposer_spec.rb +++ b/spec/models/question_glisser_deposer_spec.rb @@ -26,7 +26,7 @@ expect(json.keys).to match_array(%w[id intitule audio_url nom_technique description illustration modalite_reponse type reponsesNonClassees]) - expect(json['type']).to eql('glisser_deposer_billets') + expect(json['type']).to eql('glisser-deposer-billets') expect(json['intitule']).to eql('Mon Intitulé') expect(json['modalite_reponse']).to eql(modalite.ecrit) expect(json['illustration']).to eql(Rails.application.routes.url_helpers.url_for(