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

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

22 lines
531 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe FeatureFlagSummaryEntity do
let!(:feature_flag) { create(:operations_feature_flag, project: project) }
let(:project) { create(:project) }
let(:request) { double('request', current_user: user) }
let(:user) { create(:user) }
let(:entity) { described_class.new(project, request: request) }
before do
project.add_developer(user)
end
subject { entity.as_json }
it 'has summary information' do
expect(subject).to include(:count)
end
end