From 32244ec2195eff67d1e6abca90db2657234a37bb Mon Sep 17 00:00:00 2001 From: Zog Date: Mon, 12 Mar 2018 15:50:52 +0100 Subject: Fix specs --- spec/models/export/export_spec.rb | 4 ++-- spec/models/import/import_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'spec') diff --git a/spec/models/export/export_spec.rb b/spec/models/export/export_spec.rb index ca94c1ff1..48d8aa44a 100644 --- a/spec/models/export/export_spec.rb +++ b/spec/models/export/export_spec.rb @@ -125,8 +125,8 @@ RSpec.describe Export::Base, type: :model do netex_export.status = :bar netex_export.notify_parent - expect(netex_export.notified_parent_at).to eq Time.now - expect(netex_export.reload.notified_parent_at).to eq Time.now + expect(netex_export.notified_parent_at.to_datetime).to eq Time.now.to_datetime + expect(netex_export.reload.notified_parent_at.to_datetime).to eq Time.now.to_datetime end end end diff --git a/spec/models/import/import_spec.rb b/spec/models/import/import_spec.rb index c41d5ba53..7c247b3ed 100644 --- a/spec/models/import/import_spec.rb +++ b/spec/models/import/import_spec.rb @@ -125,8 +125,8 @@ RSpec.describe Import::Base, type: :model do netex_import.status = :bar netex_import.notify_parent - expect(netex_import.notified_parent_at).to eq Time.now - expect(netex_import.reload.notified_parent_at).to eq Time.now + expect(netex_import.notified_parent_at.to_datetime).to eq Time.now.to_datetime + expect(netex_import.reload.notified_parent_at.to_datetime).to eq Time.now.to_datetime end end end -- cgit v1.2.3