Use faster model updates in #update_runner_info spec

This commit is contained in:
Matija Čupić 2018-01-29 23:27:03 +01:00
parent 63ecb57f1b
commit 126b6bbc7f
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
1 changed files with 2 additions and 2 deletions

View File

@ -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