From d289c21a8b20beb4e8d7da9d01eeb0ea5b197946 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Wed, 8 Jan 2020 17:05:04 +0100 Subject: [PATCH] speak english for test descriptions --- spec/models/user_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 7181878ad..b127d35c6 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -230,18 +230,18 @@ describe User, type: :model do let(:administration) { create(:administration) } let(:user) { create(:user) } - context 'avec un dossier en instruction' do + context 'with a dossier in instruction' do let!(:dossier_en_instruction) { create(:dossier, :en_instruction, user: user) } it 'raises' do expect { user.delete_and_keep_track_dossiers(administration) }.to raise_error end end - context 'sans dossier en instruction' do + context 'without a dossier in instruction' do let!(:dossier_en_construction) { create(:dossier, :en_construction, user: user) } let!(:dossier_brouillon) { create(:dossier, user: user) } - it "garde une trace des dossiers et supprime l'utilisateur" do + it "keep track of dossiers and delete user" do user.delete_and_keep_track_dossiers(administration) expect(DeletedDossier.find_by(dossier_id: dossier_en_construction)).to be_present