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
3eb19284
Commit
3eb19284
authored
Mar 10, 2021
by
Alishan Ladhani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move expectation out of `before` block
parent
9a0212d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ee/spec/services/epics/issue_promote_service_spec.rb
ee/spec/services/epics/issue_promote_service_spec.rb
+5
-3
No files found.
ee/spec/services/epics/issue_promote_service_spec.rb
View file @
3eb19284
...
...
@@ -63,9 +63,6 @@ RSpec.describe Epics::IssuePromoteService, :aggregate_failures do
before
do
subject
.
execute
(
issue
)
expect_snowplow_event
(
category:
'epics'
,
action:
'promote'
,
property:
'issue_id'
,
value:
issue
.
id
,
project:
project
,
user:
user
,
namespace:
group
)
end
it
'creates a new epic with correct attributes'
do
...
...
@@ -97,6 +94,11 @@ RSpec.describe Epics::IssuePromoteService, :aggregate_failures do
expect
(
issue
.
promoted_to_epic
).
to
eq
(
epic
)
end
it
'emits a snowplow event'
do
expect_snowplow_event
(
category:
'epics'
,
action:
'promote'
,
property:
'issue_id'
,
value:
issue
.
id
,
project:
project
,
user:
user
,
namespace:
group
)
end
context
'when issue description has mentions and has notes with mentions'
do
let
(
:issue
)
{
create
(
:issue
,
project:
project
,
description:
"description with mention to
#{
user
.
to_reference
}
"
)
}
...
...
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