Commit 175a3dfd authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Fix GitLab QA release inflector strategy

parent 8a418f3e
......@@ -19,7 +19,7 @@ def initialize(version = ENV['GITLAB_RELEASE'])
end
begin
require "#{version.downcase}/strategy"
require "qa/#{version.downcase}/strategy"
rescue LoadError
# noop
end
......
......@@ -5,6 +5,7 @@
before do
stub_const('QA::CE::Strategy', strategy)
stub_const('QA::EE::Strategy', strategy)
end
describe '#has_strategy?' do
......@@ -32,6 +33,11 @@
context 'when release version does not have extension strategy' do
subject { described_class.new('CE') }
before do
hide_const('QA::CE::Strategy')
hide_const('QA::EE::Strategy')
end
describe '#has_strategy?' do
it 'returns false' do
expect(subject.has_strategy?).to be false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment