Commit 0206c6aa authored by Jasper Maes's avatar Jasper Maes

Rails5: fix mysql milliseconds issue in deployment model specs

parent 173c6ca1
---
title: 'Rails5: fix mysql milliseconds issue in deployment model specs'
merge_request: 22850
author: Jasper Maes
type: other
...@@ -88,7 +88,7 @@ describe Deployment do ...@@ -88,7 +88,7 @@ describe Deployment do
deployment.succeed! deployment.succeed!
expect(deployment).to be_success 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
end end
...@@ -108,7 +108,7 @@ describe Deployment do ...@@ -108,7 +108,7 @@ describe Deployment do
deployment.drop! deployment.drop!
expect(deployment).to be_failed 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 end
end end
...@@ -121,7 +121,7 @@ describe Deployment do ...@@ -121,7 +121,7 @@ describe Deployment do
deployment.cancel! deployment.cancel!
expect(deployment).to be_canceled 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 end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment