Commit 149a535b authored by Valery Sizov's avatar Valery Sizov

Fix specs after removing assignee_id field

parent 8c0ab358
...@@ -183,7 +183,7 @@ class Spinach::Features::Groups < Spinach::FeatureSteps ...@@ -183,7 +183,7 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
private private
def assigned_to_me(key) def assigned_to_me(key)
project.send(key).where(assignee_id: current_user.id) project.send(key).assigned_to(current_user)
end end
def project def project
......
...@@ -24,7 +24,7 @@ describe Members::AuthorizedDestroyService, services: true do ...@@ -24,7 +24,7 @@ describe Members::AuthorizedDestroyService, services: true do
expect { described_class.new(member, member_user).execute } expect { described_class.new(member, member_user).execute }
.to change { number_of_assigned_issuables(member_user) }.from(4).to(2) .to change { number_of_assigned_issuables(member_user) }.from(4).to(2)
expect(issue.reload.assignee_id).to be_nil expect(issue.reload.assignee_ids).to be_empty
expect(merge_request.reload.assignee_id).to be_nil expect(merge_request.reload.assignee_id).to be_nil
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment