From 3e334a3306f2ce5b004c59571cbe5926b32351c9 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 14 Nov 2019 16:11:22 +0100 Subject: [PATCH] Drop test_started_at # Conflicts: # spec/models/procedure_spec.rb --- app/models/procedure.rb | 3 +-- spec/models/procedure_spec.rb | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/procedure.rb b/app/models/procedure.rb index ddb533995..af4a5c8e9 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -1,7 +1,7 @@ require Rails.root.join('lib', 'percentile') class Procedure < ApplicationRecord - self.ignored_columns = ['logo', 'logo_secure_token'] + self.ignored_columns = ['logo', 'logo_secure_token', 'test_started_at'] include ProcedureStatsConcern @@ -366,7 +366,6 @@ class Procedure < ApplicationRecord }, &method(:clone_attachments)) procedure.path = SecureRandom.uuid procedure.aasm_state = :brouillon - procedure.test_started_at = nil procedure.archived_at = nil procedure.published_at = nil procedure.lien_notice = nil diff --git a/spec/models/procedure_spec.rb b/spec/models/procedure_spec.rb index 0117b43df..c112a0e69 100644 --- a/spec/models/procedure_spec.rb +++ b/spec/models/procedure_spec.rb @@ -514,7 +514,6 @@ describe Procedure do it 'Not published nor archived' do expect(subject.archived_at).to be_nil expect(subject.published_at).to be_nil - expect(subject.test_started_at).to be_nil expect(subject.aasm_state).to eq "brouillon" expect(subject.path).not_to be_nil end