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
8be9b198
Commit
8be9b198
authored
May 26, 2020
by
Lucy Fox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo: exists
parent
59122560
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/lib/gitlab/reference_extractor_spec.rb
spec/lib/gitlab/reference_extractor_spec.rb
+2
-2
No files found.
spec/lib/gitlab/reference_extractor_spec.rb
View file @
8be9b198
...
...
@@ -204,7 +204,7 @@ describe Gitlab::ReferenceExtractor do
issue
]
end
it
'returns only Jira issues if the internal one does not exist
s
'
do
it
'returns only Jira issues if the internal one does not exist'
do
subject
.
analyze
(
"JIRA-123 and FOOBAR-4567 and #
#{
non_existing_record_iid
}
"
)
expect
(
subject
.
issues
).
to
eq
[
ExternalIssue
.
new
(
'JIRA-123'
,
project
),
ExternalIssue
.
new
(
'FOOBAR-4567'
,
project
)]
...
...
@@ -236,7 +236,7 @@ describe Gitlab::ReferenceExtractor do
expect
(
subject
.
issues
).
to
eq
([
issue
])
end
it
'does not return any issue if the internal one does not exist
s
'
do
it
'does not return any issue if the internal one does not exist'
do
subject
.
analyze
(
"JIRA-123 and FOOBAR-4567 and #999"
)
expect
(
subject
.
issues
).
to
be_empty
end
...
...
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