diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-04 19:19:48 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-04 19:20:07 +0100 |
commit | 35e04fa5d9a24f012eaf2459e48dda990677f0da (patch) | |
tree | 0a4894f695be8fdf1b4d11ed43464364801b2a76 /spec/models | |
parent | 38c242126d10d0887ca0d3dd8565ef2669dfec46 (diff) | |
download | gitlab-ce-35e04fa5d9a24f012eaf2459e48dda990677f0da.tar.gz |
Expect instead of allow Redis get stub for online? spec
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/runner_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/runner_spec.rb b/spec/models/ci/runner_spec.rb index 19a4e640090..41e27c62bd9 100644 --- a/spec/models/ci/runner_spec.rb +++ b/spec/models/ci/runner_spec.rb @@ -148,7 +148,7 @@ describe Ci::Runner do def stub_redis_runner_contacted_at(value) Gitlab::Redis::SharedState.with do |redis| cache_key = runner.send(:cache_attribute_key, :contacted_at) - allow(redis).to receive(:get).with(cache_key).and_return(value) + expect(redis).to receive(:get).with(cache_key).and_return(value).at_least(:once) end end end |