Dossier decorator spec: fix dossier updated_at spec
This commit is contained in:
parent
78a9629216
commit
106b8ec118
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,12 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe DossierDecorator do
|
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 }
|
subject { dossier.decorate }
|
||||||
|
|
||||||
describe 'first_creation' do
|
describe 'first_creation' do
|
||||||
|
|
Loading…
Reference in a new issue