Fix failure in current_settings_spec.rb

This commit is contained in:
Winnie Hellmann 2017-10-20 18:33:00 +00:00
parent 64fd9814fd
commit beeed14f04

View file

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