summaryrefslogtreecommitdiff
path: root/spec/serializers/feature_flags_client_serializer_spec.rb
blob: 3746142a3f17cb4713cd137cda96a1297ee0c12a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe FeatureFlagsClientSerializer do
  let(:project) { create(:project) }
  let(:feature_flags_client) { project.create_operations_feature_flags_client! }
  let(:serializer) { described_class.new }

  describe '#represent_token' do
    subject { serializer.represent_token(feature_flags_client).to_json }

    it 'includes feature flags client token' do
      expect(subject).to match_schema('feature_flags_client_token')
    end
  end
end