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:
authorMatija Čupić <matteeyah@gmail.com>2018-01-30 01:27:03 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-01-30 01:27:03 +0300
commit126b6bbc7fdeb1afd5b6d29c86051c48a09c4857 (patch)
treec6e2c9f38206166f00593ce551839370b6573abc /spec/models/ci/runner_spec.rb
parent63ecb57f1b956bb7901e27f26f3bc2f3f62bcaa8 (diff)
Use faster model updates in #update_runner_info spec
Diffstat (limited to 'spec/models/ci/runner_spec.rb')
-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