aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-03-12 15:50:52 +0100
committerZog2018-03-12 15:50:52 +0100
commit32244ec2195eff67d1e6abca90db2657234a37bb (patch)
treefd89424e896e206e73f8c5ec2e6ae8bde2c0ff38
parentfaa6c9b8a4262fb2c5212fd3b971337881bb242b (diff)
downloadchouette-core-32244ec2195eff67d1e6abca90db2657234a37bb.tar.bz2
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 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