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

18 lines
355 B
Ruby

# 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