From 126b6bbc7fdeb1afd5b6d29c86051c48a09c4857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20=C4=8Cupi=C4=87?= Date: Mon, 29 Jan 2018 23:27:03 +0100 Subject: [PATCH] Use faster model updates in #update_runner_info spec --- spec/models/ci/runner_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/ci/runner_spec.rb b/spec/models/ci/runner_spec.rb index 99b4a82da88..ab931e5d43c 100644 --- a/spec/models/ci/runner_spec.rb +++ b/spec/models/ci/runner_spec.rb @@ -400,7 +400,7 @@ describe Ci::Runner do context 'when database was updated recently' do before do - runner.update(contacted_at: Time.now) + runner.contacted_at = Time.now end it 'updates cache' do @@ -412,7 +412,7 @@ describe Ci::Runner do context 'when database was not updated recently' do before do - runner.update(contacted_at: 2.hours.ago) + runner.contacted_at = 2.hours.ago end it 'updates database' do