summaryrefslogtreecommitdiff
path: root/spec/models/ci
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-01-29 23:27:03 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-01-29 23:27:03 +0100
commit126b6bbc7fdeb1afd5b6d29c86051c48a09c4857 (patch)
treec6e2c9f38206166f00593ce551839370b6573abc /spec/models/ci
parent63ecb57f1b956bb7901e27f26f3bc2f3f62bcaa8 (diff)
downloadgitlab-ce-126b6bbc7fdeb1afd5b6d29c86051c48a09c4857.tar.gz
Use faster model updates in #update_runner_info spec
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/runner_spec.rb4
1 files 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