aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-03-13 16:34:21 +0100
committerZog2018-03-13 16:35:00 +0100
commit7ccef25a79817223cf5cd8962f7de72279f33649 (patch)
tree3c0e09c44ab37bfda6409723c828c81312245cd4
parent99f1421619dec7fb62953335fa707a0d85e68d83 (diff)
downloadchouette-core-7ccef25a79817223cf5cd8962f7de72279f33649.tar.bz2
Try and fix specs
-rw-r--r--spec/models/export/export_spec.rb4
-rw-r--r--spec/models/import/import_spec.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/export/export_spec.rb b/spec/models/export/export_spec.rb
index 48d8aa44a..edc0788f2 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_datetime).to eq Time.now.to_datetime
- expect(netex_export.reload.notified_parent_at.to_datetime).to eq Time.now.to_datetime
+ expect(netex_export.notified_parent_at.strftime('%Y-%m-%d %H:%M:%S.%3N')).to eq Time.now.strftime('%Y-%m-%d %H:%M:%S.%3N')
+ expect(netex_export.reload.notified_parent_at.strftime('%Y-%m-%d %H:%M:%S.%3N')).to eq Time.now.strftime('%Y-%m-%d %H:%M:%S.%3N')
end
end
end
diff --git a/spec/models/import/import_spec.rb b/spec/models/import/import_spec.rb
index 7c247b3ed..102c0e1d6 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_datetime).to eq Time.now.to_datetime
- expect(netex_import.reload.notified_parent_at.to_datetime).to eq Time.now.to_datetime
+ expect(netex_import.notified_parent_at.strftime('%Y-%m-%d %H:%M:%S.%3N')).to eq Time.now.strftime('%Y-%m-%d %H:%M:%S.%3N')
+ expect(netex_import.reload.notified_parent_at.strftime('%Y-%m-%d %H:%M:%S.%3N')).to eq Time.now.strftime('%Y-%m-%d %H:%M:%S.%3N')
end
end
end