2019-07-07 11:18:12 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe NamespaceBasicEntity do
|
2020-04-08 14:13:33 +05:30
|
|
|
let_it_be(:group) { create(:group) }
|
2021-04-29 21:17:54 +05:30
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
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
|