summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2017-10-20 18:33:00 +0000
committerWinnie Hellmann <winnie@gitlab.com>2017-10-20 18:33:00 +0000
commitbeeed14f0470e912a2add7a7b94cb1cc1c6adb07 (patch)
treed87308ba2f8d403964a4e5ae331dcfb321f56abe
parent64fd9814fdbcd2edf6a282568c645c5b2c0663e2 (diff)
downloadgitlab-ce-fix-application-setting-nil-cache.tar.gz
Fix failure in current_settings_spec.rbfix-application-setting-nil-cache
-rw-r--r--spec/lib/gitlab/current_settings_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/current_settings_spec.rb b/spec/lib/gitlab/current_settings_spec.rb
index d57ffcae8e1..492659a82b0 100644
--- a/spec/lib/gitlab/current_settings_spec.rb
+++ b/spec/lib/gitlab/current_settings_spec.rb
@@ -21,7 +21,7 @@ describe Gitlab::CurrentSettings do
it 'falls back to DB if Redis returns an empty value' do
expect(ApplicationSetting).to receive(:cached).and_return(nil)
- expect(ApplicationSetting).to receive(:last).and_call_original
+ expect(ApplicationSetting).to receive(:last).and_call_original.twice
expect(current_application_settings).to be_a(ApplicationSetting)
end