debian-mirror-gitlab/spec/serializers/issuable_sidebar_extras_entity_spec.rb

17 lines
452 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe IssuableSidebarExtrasEntity do
2019-12-26 22:10:19 +05:30
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
let(:resource) { create(:issue, project: project) }
let(:request) { double('request', current_user: user) }
subject { described_class.new(resource, request: request).as_json }
2021-11-11 11:23:49 +05:30
it 'have assignee attribute' do
expect(subject).to include(:assignees)
2019-12-26 22:10:19 +05:30
end
end