Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-11-06 23:11:34 +0300
committerJasper Maes <jaspermaes.jm@gmail.com>2018-11-06 23:14:47 +0300
commit0206c6aa4189d9c1bc9967c22b120c26b6441c72 (patch)
tree5a5c3a76456322aac0f46dbcd7b71d13407e2464 /spec/models/deployment_spec.rb
parent173c6ca1e8925d69e9aba88c8331096521d3f388 (diff)
Rails5: fix mysql milliseconds issue in deployment model specs
Diffstat (limited to 'spec/models/deployment_spec.rb')
-rw-r--r--spec/models/deployment_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/deployment_spec.rb b/spec/models/deployment_spec.rb
index 06c1e9c8c6a..270b2767c68 100644
--- a/spec/models/deployment_spec.rb
+++ b/spec/models/deployment_spec.rb
@@ -88,7 +88,7 @@ describe Deployment do
deployment.succeed!
expect(deployment).to be_success
- expect(deployment.finished_at).to eq(Time.now)
+ expect(deployment.finished_at).to be_like_time(Time.now)
end
end
@@ -108,7 +108,7 @@ describe Deployment do
deployment.drop!
expect(deployment).to be_failed
- expect(deployment.finished_at).to eq(Time.now)
+ expect(deployment.finished_at).to be_like_time(Time.now)
end
end
end
@@ -121,7 +121,7 @@ describe Deployment do
deployment.cancel!
expect(deployment).to be_canceled
- expect(deployment.finished_at).to eq(Time.now)
+ expect(deployment.finished_at).to be_like_time(Time.now)
end
end
end