debian-mirror-gitlab/spec/serializers/issuable_sidebar_extras_entity_spec.rb
2020-08-09 17:41:57 +05:30

20 lines
665 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe IssuableSidebarExtrasEntity do
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