summaryrefslogtreecommitdiff
path: root/spec/serializers/namespace_basic_entity_spec.rb
blob: 379a49e364ed57fae6f36cd73631072c5e1f29b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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