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
class IssueBasic < ProjectEntity
expose :label_names, as: :labels
expose :milestone, using: Entities::Milestone
expose :assignee, :author, using: Entities::UserBasic
expose :assignees, :author, using: Entities::UserBasic
expose :user_notes_count
expose :upvotes, :downvotes
......
......@@ -88,7 +88,7 @@ describe MergeRequest, models: true do
end
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
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