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
be4600d3
Commit
be4600d3
authored
May 25, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fix specs after removing assignee_id field"
This reverts commit
149a535b
.
parent
6aac2675
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
features/steps/groups.rb
features/steps/groups.rb
+1
-1
spec/services/members/authorized_destroy_service_spec.rb
spec/services/members/authorized_destroy_service_spec.rb
+1
-1
No files found.
features/steps/groups.rb
View file @
be4600d3
...
...
@@ -183,7 +183,7 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
private
def
assigned_to_me
(
key
)
project
.
send
(
key
).
assigned_to
(
current_user
)
project
.
send
(
key
).
where
(
assignee_id:
current_user
.
id
)
end
def
project
...
...
spec/services/members/authorized_destroy_service_spec.rb
View file @
be4600d3
...
...
@@ -24,7 +24,7 @@ describe Members::AuthorizedDestroyService, services: true do
expect
{
described_class
.
new
(
member
,
member_user
).
execute
}
.
to
change
{
number_of_assigned_issuables
(
member_user
)
}.
from
(
4
).
to
(
2
)
expect
(
issue
.
reload
.
assignee_id
s
).
to
be_empty
expect
(
issue
.
reload
.
assignee_id
).
to
be_nil
expect
(
merge_request
.
reload
.
assignee_id
).
to
be_nil
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