gitlab-org--gitlab-foss/spec/support/stub_version.rb
Bob Van Landuyt b09e40624b Show the commit-sha for pre-release versions
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.
2018-10-02 16:11:32 +02:00

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