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
9862ddf1
Commit
9862ddf1
authored
Jan 21, 2021
by
Alex Kalderimis
Committed by
Jan Provaznik
Jan 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add regression spec
parent
cc30106a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
spec/lib/atlassian/jira_connect/serializers/feature_flag_entity_spec.rb
...sian/jira_connect/serializers/feature_flag_entity_spec.rb
+3
-2
No files found.
spec/lib/atlassian/jira_connect/serializers/feature_flag_entity_spec.rb
View file @
9862ddf1
...
...
@@ -9,7 +9,7 @@ RSpec.describe Atlassian::JiraConnect::Serializers::FeatureFlagEntity do
subject
{
described_class
.
represent
(
feature_flag
)
}
context
'when the feature flag does not belong to any Jira issue'
do
let_it_be
(
:feature_flag
)
{
create
(
:operations_feature_flag
)
}
let_it_be
(
:feature_flag
)
{
create
(
:operations_feature_flag
,
project:
project
)
}
describe
'#issue_keys'
do
it
'is empty'
do
...
...
@@ -30,7 +30,7 @@ RSpec.describe Atlassian::JiraConnect::Serializers::FeatureFlagEntity do
context
'when the feature flag does belong to a Jira issue'
do
let
(
:feature_flag
)
do
create
(
:operations_feature_flag
,
description:
'THING-123'
)
create
(
:operations_feature_flag
,
project:
project
,
description:
'THING-123'
)
end
describe
'#issue_keys'
do
...
...
@@ -66,6 +66,7 @@ RSpec.describe Atlassian::JiraConnect::Serializers::FeatureFlagEntity do
end
it
'has the correct summary'
do
expect
(
entity
.
dig
(
'summary'
,
'url'
)).
to
eq
"http://localhost/
#{
project
.
full_path
}
/-/feature_flags/
#{
feature_flag
.
iid
}
/edit"
expect
(
entity
.
dig
(
'summary'
,
'status'
)).
to
eq
(
'enabled'
=>
true
,
'defaultValue'
=>
''
,
...
...
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