debian-mirror-gitlab/spec/lib/api/entities/projects/topic_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
377 B
Ruby
Raw Normal View History

2021-12-11 22:18:48 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe API::Entities::Projects::Topic do
let(:topic) { create(:topic) }
subject { described_class.new(topic).as_json }
it 'exposes correct attributes' do
expect(subject).to include(
:id,
:name,
2022-07-16 23:28:13 +05:30
:title,
2021-12-11 22:18:48 +05:30
:description,
:total_projects_count,
:avatar_url
)
end
end