Commit 126b6bbc authored by Matija Čupić's avatar Matija Čupić

Use faster model updates in #update_runner_info spec

parent 63ecb57f
...@@ -400,7 +400,7 @@ describe Ci::Runner do ...@@ -400,7 +400,7 @@ describe Ci::Runner do
context 'when database was updated recently' do context 'when database was updated recently' do
before do before do
runner.update(contacted_at: Time.now) runner.contacted_at = Time.now
end end
it 'updates cache' do it 'updates cache' do
...@@ -412,7 +412,7 @@ describe Ci::Runner do ...@@ -412,7 +412,7 @@ describe Ci::Runner do
context 'when database was not updated recently' do context 'when database was not updated recently' do
before do before do
runner.update(contacted_at: 2.hours.ago) runner.contacted_at = 2.hours.ago
end end
it 'updates database' do it 'updates database' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment