Commit c72e004d authored by Valery Sizov's avatar Valery Sizov

[Multiple issue asignees] fix a few specs

parent e7e63199
...@@ -279,7 +279,7 @@ module API ...@@ -279,7 +279,7 @@ module API
class IssueBasic < ProjectEntity class IssueBasic < ProjectEntity
expose :label_names, as: :labels expose :label_names, as: :labels
expose :milestone, using: Entities::Milestone expose :milestone, using: Entities::Milestone
expose :assignee, :author, using: Entities::UserBasic expose :assignees, :author, using: Entities::UserBasic
expose :user_notes_count expose :user_notes_count
expose :upvotes, :downvotes expose :upvotes, :downvotes
......
...@@ -88,7 +88,7 @@ describe MergeRequest, models: true do ...@@ -88,7 +88,7 @@ describe MergeRequest, models: true do
end end
describe '#assignee_or_author?' do describe '#assignee_or_author?' do
let(:user) { build(:user) } let(:user) { build(:user, id: 1) }
it 'returns true for a user that is assigned to a merge request' do it 'returns true for a user that is assigned to a merge request' do
subject.assignee = user subject.assignee = user
......
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