Drop test_started_at

# Conflicts:
#	spec/models/procedure_spec.rb
This commit is contained in:
Paul Chavard 2019-11-14 16:11:22 +01:00
parent 23af0d5d93
commit 3e334a3306
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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