aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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