Commit f76c63c4 authored by Huzaifa Iftikhar's avatar Huzaifa Iftikhar Committed by David O'Regan

Fix EmptyLineAfterFinalLetItBe Rubocop offenses for api entities

parent 3c2c533b
...@@ -753,9 +753,6 @@ RSpec/EmptyLineAfterFinalLetItBe: ...@@ -753,9 +753,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- spec/helpers/projects/terraform_helper_spec.rb - spec/helpers/projects/terraform_helper_spec.rb
- spec/helpers/projects_helper_spec.rb - spec/helpers/projects_helper_spec.rb
- spec/helpers/search_helper_spec.rb - spec/helpers/search_helper_spec.rb
- spec/lib/api/entities/design_management/design_spec.rb
- spec/lib/api/entities/merge_request_changes_spec.rb
- spec/lib/api/entities/release_spec.rb
- spec/lib/bulk_imports/groups/loaders/group_loader_spec.rb - spec/lib/bulk_imports/groups/loaders/group_loader_spec.rb
- spec/lib/extracts_path_spec.rb - spec/lib/extracts_path_spec.rb
- spec/lib/extracts_ref_spec.rb - spec/lib/extracts_ref_spec.rb
......
---
title: Fix EmptyLineAfterFinalLetItBe Rubocop offenses for api entities
merge_request: 58193
author: Huzaifa Iftikhar @huzaifaiftikhar
type: fixed
...@@ -4,6 +4,7 @@ require 'spec_helper' ...@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec.describe API::Entities::DesignManagement::Design do RSpec.describe API::Entities::DesignManagement::Design do
let_it_be(:design) { create(:design) } let_it_be(:design) { create(:design) }
let(:entity) { described_class.new(design, request: double) } let(:entity) { described_class.new(design, request: double) }
subject { entity.as_json } subject { entity.as_json }
......
...@@ -5,6 +5,7 @@ require 'spec_helper' ...@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec.describe ::API::Entities::MergeRequestChanges do RSpec.describe ::API::Entities::MergeRequestChanges do
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let_it_be(:merge_request) { create(:merge_request) } let_it_be(:merge_request) { create(:merge_request) }
let(:entity) { described_class.new(merge_request, current_user: user) } let(:entity) { described_class.new(merge_request, current_user: user) }
subject(:basic_entity) { entity.as_json } subject(:basic_entity) { entity.as_json }
......
...@@ -4,6 +4,7 @@ require 'spec_helper' ...@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec.describe API::Entities::Release do RSpec.describe API::Entities::Release do
let_it_be(:project) { create(:project) } let_it_be(:project) { create(:project) }
let(:release) { create(:release, project: project) } let(:release) { create(:release, project: project) }
let(:evidence) { release.evidences.first } let(:evidence) { release.evidences.first }
let(:user) { create(:user) } let(:user) { create(:user) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment