debian-mirror-gitlab/spec/serializers/feature_flags_client_serializer_spec.rb
2021-01-30 21:13:32 +05:30

17 lines
504 B
Ruby

# 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