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
2730a0da
Commit
2730a0da
authored
Jan 12, 2021
by
Gary Holtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverting let_it_be change and making the spec more consistent
parent
17958a88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ee/spec/services/quick_actions/interpret_service_spec.rb
ee/spec/services/quick_actions/interpret_service_spec.rb
+5
-3
No files found.
ee/spec/services/quick_actions/interpret_service_spec.rb
View file @
2730a0da
...
...
@@ -7,8 +7,8 @@ RSpec.describe QuickActions::InterpretService do
let
(
:developer
)
{
create
(
:user
)
}
let
(
:developer2
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:user3
)
{
create
(
:user
)
}
let
_it_be
(
:user2
)
{
create
(
:user
)
}
let
_it_be
(
:user3
)
{
create
(
:user
)
}
let_it_be_with_refind
(
:group
)
{
create
(
:group
)
}
let_it_be_with_refind
(
:project
)
{
create
(
:project
,
:repository
,
:public
,
group:
group
)
}
let_it_be_with_reload
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
...
...
@@ -1064,7 +1064,9 @@ RSpec.describe QuickActions::InterpretService do
it
'includes only selected assignee references'
do
_
,
explanations
=
service
.
explain
(
content
,
issue
)
expect
(
explanations
).
to
eq
([
"Removes assignees @
#{
user
.
username
}
and @
#{
user3
.
username
}
."
])
expect
(
explanations
.
first
).
to
match
(
/Removes assignees/
)
expect
(
explanations
.
first
).
to
match
(
"@
#{
user3
.
username
}
"
)
expect
(
explanations
.
first
).
to
match
(
"@
#{
user
.
username
}
"
)
end
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