diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-23 12:10:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-23 12:10:07 +0300 |
commit | 8f2b51af416f4f4451632f6b3c2ada52c52eb44f (patch) | |
tree | 5e134df670cf056f300b887c3999f4aa84ec6f24 /spec/serializers/feature_flag_summary_entity_spec.rb | |
parent | 86fa823611b3ab5701d144aca1c57c51b4af25d5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/feature_flag_summary_entity_spec.rb')
-rw-r--r-- | spec/serializers/feature_flag_summary_entity_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/serializers/feature_flag_summary_entity_spec.rb b/spec/serializers/feature_flag_summary_entity_spec.rb new file mode 100644 index 00000000000..385a9deb2d7 --- /dev/null +++ b/spec/serializers/feature_flag_summary_entity_spec.rb @@ -0,0 +1,21 @@ +# 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 |