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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
43442be4
Commit
43442be4
authored
May 24, 2017
by
Valery Sizov
Committed by
Sean McGivern
Dec 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs after removing assignee_id field
parent
b1aa91fb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
db/migrate/20170523073948_remove_assignee_id_from_issue.rb
db/migrate/20170523073948_remove_assignee_id_from_issue.rb
+2
-0
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.
db/migrate/20170523073948_remove_assignee_id_from_issue.rb
View file @
43442be4
...
...
@@ -32,5 +32,7 @@ class RemoveAssigneeIdFromIssue < ActiveRecord::Migration
def
down
add_column
:issues
,
:assignee_id
,
:integer
add_concurrent_index
:issues
,
:assignee_id
execute
(
'UPDATE issues SET assignee_id = (SELECT user_id FROM issue_assignees WHERE issue_assignees.issue_id = issues.id LIMIT 1)'
)
end
end
features/steps/groups.rb
View file @
43442be4
...
...
@@ -138,7 +138,7 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
private
def
assigned_to_me
(
key
)
project
.
send
(
key
).
where
(
assignee_id:
current_user
.
id
)
project
.
send
(
key
).
assigned_to
(
current_user
)
end
def
project
...
...
spec/services/members/authorized_destroy_service_spec.rb
View file @
43442be4
...
...
@@ -45,7 +45,7 @@ describe Members::AuthorizedDestroyService 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
).
to
be_nil
expect
(
issue
.
reload
.
assignee_id
s
).
to
be_empty
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