2018-11-07 11:44:21 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 02:09:01 -04:00
|
|
|
RSpec.describe NamespaceBasicEntity do
|
2020-02-24 22:08:49 -05:00
|
|
|
let_it_be(:group) { create(:group) }
|
2021-04-14 11:09:04 -04:00
|
|
|
|
2018-11-07 11:44:21 -05:00
|
|
|
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
|