summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-10-06 13:21:47 +0200
committerJasper Maes <jaspermaes.jm@gmail.com>2018-10-06 14:13:13 +0200
commit043f899b2a90f91f95b902316ad200759b3cdc7c (patch)
treee1253d06a87f060f0aefe72a850778a298a51680 /spec/models
parent50c9a09a04048d5d46163fb97be34a739708e7ca (diff)
downloadgitlab-ce-043f899b2a90f91f95b902316ad200759b3cdc7c.tar.gz
Rails 5: fix mysql milliseconds problems in scheduled build specs
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/build_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index cebc822d525..a046541031e 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -261,7 +261,7 @@ describe Ci::Build do
it 'schedules BuildScheduleWorker at the right time' do
Timecop.freeze do
expect(Ci::BuildScheduleWorker)
- .to receive(:perform_at).with(1.minute.since, build.id)
+ .to receive(:perform_at).with(be_like_time(1.minute.since), build.id)
subject
end