Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_serializer_spec.rb « admin « serializers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 719a90384c63179d56674d17c2d688b2094a4278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true

require "spec_helper"

RSpec.describe Admin::UserSerializer do
  let(:resource) { build(:user) }

  subject { described_class.new.represent(resource).keys }

  context 'when there is a single object provided' do
    it 'contains important elements for the admin user table' do
      is_expected.to contain_exactly(
        :id,
        :name,
        :created_at,
        :email,
        :username,
        :last_activity_on,
        :avatar_url,
        :badges,
        :projects_count,
        :actions
      )
    end
  end
end