b09e40624b
The pre-release tags are set at the beginning of a release, so it would be impossible to figure out which version was running if we're running nightlies. In that case it's better to still link to the SHA. These versions don't get deployed to .com.
8 lines
202 B
Ruby
8 lines
202 B
Ruby
# frozen_string_literal: true
|
|
|
|
module StubVersion
|
|
def stub_version(version, revision)
|
|
stub_const('Gitlab::VERSION', version)
|
|
allow(Gitlab).to receive(:revision).and_return(revision)
|
|
end
|
|
end
|