mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-06 10:19:48 +00:00
9 lines
248 B
Ruby
9 lines
248 B
Ruby
# frozen_string_literal: true
|
|
|
|
module VersionCheckHelpers
|
|
def stub_version_check(response)
|
|
allow(Rails.cache).to receive(:fetch).and_call_original
|
|
allow(Rails.cache).to receive(:fetch).with('version_check').and_return(response)
|
|
end
|
|
end
|