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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
97a24815
Commit
97a24815
authored
Oct 02, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix feature_flags_helper specs
parent
918d9b5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
ee/app/helpers/feature_flags_helper.rb
ee/app/helpers/feature_flags_helper.rb
+1
-1
ee/spec/helpers/feature_flags_helper_spec.rb
ee/spec/helpers/feature_flags_helper_spec.rb
+17
-0
ee/spec/models/operations/feature_flag_spec.rb
ee/spec/models/operations/feature_flag_spec.rb
+0
-0
No files found.
ee/app/helpers/feature_flags_helper.rb
View file @
97a24815
...
...
@@ -6,6 +6,6 @@ module FeatureFlagsHelper
end
def
unleash_api_instanceid
(
project
)
project
.
feature_flag_instance_token
project
.
feature_flag
s
_instance_token
end
end
ee/spec/helpers/feature_flags_helper_spec.rb
0 → 100644
View file @
97a24815
require
'spec_helper'
describe
FeatureFlagsHelper
do
set
(
:project
)
{
create
(
:project
)
}
context
'#unleash_api_url'
do
subject
{
helper
.
unleash_api_url
(
project
)
}
it
{
is_expected
.
to
end_with
(
"/api/v4/feature_flags/unleash/
#{
project
.
id
}
"
)
}
end
context
'#unleash_api_instanceid'
do
subject
{
helper
.
unleash_api_instanceid
(
project
)
}
it
{
is_expected
.
not_to
be_empty
}
end
end
ee/spec/models/operations/feature_flag_spec.rb
0 → 100644
View file @
97a24815
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