2019-11-18 07:06:03 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 02:09:01 -04:00
|
|
|
RSpec.describe IssuableSidebarExtrasEntity do
|
2019-11-18 07:06:03 -05:00
|
|
|
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 }
|
|
|
|
|
|
|
|
it 'have subscribe attributes' do
|
|
|
|
expect(subject).to include(:participants,
|
|
|
|
:project_emails_disabled,
|
|
|
|
:subscribe_disabled_description,
|
|
|
|
:subscribed,
|
|
|
|
:assignees)
|
|
|
|
end
|
|
|
|
end
|