summaryrefslogtreecommitdiff
path: root/spec/support/stub_version.rb
blob: 594ab64e7c6c8edf379dcfa17dd3503fe9dc4d7f (plain)
1
2
3
4
5
6
7
8
# 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