Dossier decorator spec: fix dossier updated_at spec

This commit is contained in:
Simon Lehericey 2017-10-27 10:48:05 +02:00
parent 78a9629216
commit 106b8ec118

View file

@ -1,7 +1,12 @@
require 'spec_helper'
describe DossierDecorator do
let(:dossier) { create(:dossier, created_at: Time.new(2015, 12, 24, 14, 10), updated_at: Time.new(2015, 12, 24, 14, 10)) }
let(:dossier) do
dossier = create(:dossier, created_at: Time.new(2015, 12, 24, 14, 10))
dossier.update_column('updated_at', Time.new(2015, 12, 24, 14, 10))
dossier
end
subject { dossier.decorate }
describe 'first_creation' do