Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
175a3dfd
Commit
175a3dfd
authored
Mar 09, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GitLab QA release inflector strategy
parent
8a418f3e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
qa/qa/runtime/release.rb
qa/qa/runtime/release.rb
+1
-1
qa/spec/runtime/release_spec.rb
qa/spec/runtime/release_spec.rb
+6
-0
No files found.
qa/qa/runtime/release.rb
View file @
175a3dfd
...
@@ -19,7 +19,7 @@ module QA
...
@@ -19,7 +19,7 @@ module QA
end
end
begin
begin
require
"
#{
version
.
downcase
}
/strategy"
require
"
qa/
#{
version
.
downcase
}
/strategy"
rescue
LoadError
rescue
LoadError
# noop
# noop
end
end
...
...
qa/spec/runtime/release_spec.rb
View file @
175a3dfd
...
@@ -5,6 +5,7 @@ describe QA::Runtime::Release do
...
@@ -5,6 +5,7 @@ describe QA::Runtime::Release do
before
do
before
do
stub_const
(
'QA::CE::Strategy'
,
strategy
)
stub_const
(
'QA::CE::Strategy'
,
strategy
)
stub_const
(
'QA::EE::Strategy'
,
strategy
)
end
end
describe
'#has_strategy?'
do
describe
'#has_strategy?'
do
...
@@ -32,6 +33,11 @@ describe QA::Runtime::Release do
...
@@ -32,6 +33,11 @@ describe QA::Runtime::Release do
context
'when release version does not have extension strategy'
do
context
'when release version does not have extension strategy'
do
subject
{
described_class
.
new
(
'CE'
)
}
subject
{
described_class
.
new
(
'CE'
)
}
before
do
hide_const
(
'QA::CE::Strategy'
)
hide_const
(
'QA::EE::Strategy'
)
end
describe
'#has_strategy?'
do
describe
'#has_strategy?'
do
it
'returns false'
do
it
'returns false'
do
expect
(
subject
.
has_strategy?
).
to
be
false
expect
(
subject
.
has_strategy?
).
to
be
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment