debian-mirror-gitlab/spec/serializers/feature_flags_client_serializer_spec.rb

18 lines
504 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# 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