Force commentaire order to avoid tests to fail randomly

This commit is contained in:
Mathieu Magnin 2017-10-05 13:43:37 +02:00 committed by gregoirenovel
parent df699336d9
commit 17ce3885fd
3 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@ class Commentaire < ActiveRecord::Base
belongs_to :piece_justificative
scope :ordered, -> { order(created_at: :asc) }
default_scope { order(created_at: :asc) }
after_create :notify