summaryrefslogtreecommitdiff
path: root/spec/serializers/namespace_basic_entity_spec.rb
blob: 8b69af5696aeb66c5be4f730784bc2af6d276c37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe NamespaceBasicEntity do
  let_it_be(:group) { create(:group) }
  let(:entity) do
    described_class.represent(group)
  end

  describe '#as_json' do
    subject { entity.as_json }

    it 'includes required fields' do
      expect(subject).to include :id, :full_path
    end
  end
end