Commit eb63ad83 authored by Robert Speicher's avatar Robert Speicher

Merge branch '220018-rspec-zero-monkey-patching-mode-8' into 'master'

RSpec zero monkey patching mode

See merge request gitlab-org/gitlab!33729
parents a7d5526b 07fb7498
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::GroupBoards do
RSpec.describe API::GroupBoards do
let_it_be(:user) { create(:user) }
let_it_be(:non_member) { create(:user) }
let_it_be(:guest) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::GroupClusters do
RSpec.describe API::GroupClusters do
include KubernetesHelpers
let(:current_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::GroupHooks do
RSpec.describe API::GroupHooks do
let(:group_admin) { create(:user) }
let(:non_admin_user) { create(:user) }
let(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::GroupMilestones do
RSpec.describe API::GroupMilestones do
let(:user) { create(:user) }
let(:group) { create(:group, :private) }
let(:project) { create(:project, namespace: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::GroupPackages do
RSpec.describe API::GroupPackages do
let_it_be(:group) { create(:group, :public) }
let_it_be(:project) { create(:project, :public, namespace: group, name: 'project A') }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Groups do
RSpec.describe API::Groups do
include GroupAPIHelpers
let_it_be(:group, reload: true) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Helpers do
RSpec.describe API::Helpers do
include API::APIGuard::HelperMethods
include described_class
......
# frozen_string_literal: true
require 'spec_helper'
describe API::Internal::Base do
RSpec.describe API::Internal::Base do
include EE::GeoHelpers
let_it_be(:primary_url) { 'http://primary.example.com' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::IssueLinks do
RSpec.describe API::IssueLinks do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project) }
let_it_be(:issue) { create(:issue, project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Issues, :mailer do
RSpec.describe API::Issues, :mailer do
let_it_be(:user) { create(:user) }
let_it_be(:project) do
create(:project, :public, creator_id: user.id, namespace: user.namespace)
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Jobs do
RSpec.describe API::Jobs do
let_it_be(:project) do
create(:project, :repository, public_builds: false)
end
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::LdapGroupLinks, api: true do
RSpec.describe API::LdapGroupLinks, api: true do
include ApiHelpers
let(:owner) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Ldap do
RSpec.describe API::Ldap do
include ApiHelpers
include LdapHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::License, api: true do
RSpec.describe API::License, api: true do
include ApiHelpers
let(:gl_license) { build(:gitlab_license) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ManagedLicenses do
RSpec.describe API::ManagedLicenses do
let_it_be(:project) { create(:project, :public) }
let_it_be(:maintainer_user) { create(:user) }
let_it_be(:dev_user) { create(:user) }
......
# frozen_string_literal: true
require 'spec_helper'
describe API::MavenPackages do
RSpec.describe API::MavenPackages do
let_it_be(:group) { create(:group) }
let_it_be(:user) { create(:user) }
let_it_be(:project, reload: true) { create(:project, :public, namespace: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Members do
RSpec.describe API::Members do
context 'group members endpoint for group managed accounts' do
let(:group) { create(:group) }
let(:owner) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::MergeRequestApprovalRules do
RSpec.describe API::MergeRequestApprovalRules do
let_it_be(:user) { create(:user) }
let_it_be(:other_user) { create(:user) }
let_it_be(:project) { create(:project, :public, :repository, creator: user, namespace: user.namespace) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::MergeRequestApprovals do
RSpec.describe API::MergeRequestApprovals do
let_it_be(:user) { create(:user) }
let_it_be(:user2) { create(:user) }
let_it_be(:admin) { create(:user, :admin) }
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe API::MergeRequests do
RSpec.describe API::MergeRequests do
include ProjectForksHelper
let_it_be(:user) { create(:user) }
......
# frozen_string_literal: true
require 'spec_helper'
describe API::MergeTrains do
RSpec.describe API::MergeTrains do
let_it_be(:project) { create(:project, :repository) }
let_it_be(:developer) { create(:user) }
let_it_be(:guest) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Namespaces do
RSpec.describe API::Namespaces do
let(:admin) { create(:admin) }
let(:user) { create(:user) }
let!(:group1) { create(:group, name: 'test.test-group.2') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Notes do
RSpec.describe API::Notes do
let!(:user) { create(:user) }
let!(:project) { create(:project, :public) }
let(:private_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::NpmPackages do
RSpec.describe API::NpmPackages do
include EE::PackagesManagerApiSpecHelpers
let_it_be(:user) { create(:user) }
......
# frozen_string_literal: true
require 'spec_helper'
describe API::NugetPackages do
RSpec.describe API::NugetPackages do
include WorkhorseHelpers
include EE::PackagesManagerApiSpecHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::PackageFiles do
RSpec.describe API::PackageFiles do
let(:user) { create(:user) }
let(:project) { create(:project, :public) }
let(:package) { create(:maven_package, project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Pipelines do
RSpec.describe API::Pipelines do
let(:user) { create(:user) }
let(:project) { create(:project, :repository, creator: user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProjectAliases, api: true do
RSpec.describe API::ProjectAliases, api: true do
let(:user) { create(:user) }
let(:admin) { create(:admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProjectApprovalRules do
RSpec.describe API::ProjectApprovalRules do
let_it_be(:group) { create(:group_with_members) }
let_it_be(:user) { create(:user) }
let_it_be(:user2) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProjectApprovalSettings do
RSpec.describe API::ProjectApprovalSettings do
let_it_be(:group) { create(:group_with_members) }
let_it_be(:user) { create(:user) }
let_it_be(:user2) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProjectApprovals do
RSpec.describe API::ProjectApprovals do
let_it_be(:group) { create(:group_with_members) }
let_it_be(:user) { create(:user) }
let_it_be(:user2) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProjectClusters do
RSpec.describe API::ProjectClusters do
include KubernetesHelpers
let(:current_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProjectImport do
RSpec.describe API::ProjectImport do
include ExternalAuthorizationServiceHelpers
include WorkhorseHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProjectMilestones do
RSpec.describe API::ProjectMilestones do
let(:user) { create(:user) }
let!(:project) { create(:project, namespace: user.namespace ) }
let!(:milestone) { create(:milestone, project: project, title: 'version2', description: 'open milestone', start_date: Date.today, due_date: Date.today + 3.days) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProjectMirror do
RSpec.describe API::ProjectMirror do
describe 'POST /projects/:id/mirror/pull' do
let(:visibility) { Gitlab::VisibilityLevel::PUBLIC }
let(:project_mirrored) { create(:project, :repository, :mirror, visibility: visibility) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProjectPackages do
RSpec.describe API::ProjectPackages do
let(:user) { create(:user) }
let_it_be(:project) { create(:project, :public) }
let!(:package1) { create(:npm_package, project: project, version: '3.1.0', name: "@#{project.root_namespace.path}/foo1") }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProjectPushRule, 'ProjectPushRule', api: true do
RSpec.describe API::ProjectPushRule, 'ProjectPushRule', api: true do
include ApiHelpers
let(:user) { create(:user) }
let(:user3) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProjectSnapshots do
RSpec.describe API::ProjectSnapshots do
include ::EE::GeoHelpers
let(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Projects do
RSpec.describe API::Projects do
include ExternalAuthorizationServiceHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProtectedBranches do
RSpec.describe API::ProtectedBranches do
let(:user) { create(:user) }
let!(:project) { create(:project, :repository) }
let(:protected_name) { 'feature' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ProtectedEnvironments do
RSpec.describe API::ProtectedEnvironments do
include AccessMatchersForRequest
let(:user) { create(:user) }
......
# frozen_string_literal: true
require 'spec_helper'
describe API::PypiPackages do
RSpec.describe API::PypiPackages do
include WorkhorseHelpers
include EE::PackagesManagerApiSpecHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Releases do
RSpec.describe API::Releases do
let(:project) { create(:project, :repository, :private) }
let(:maintainer) { create(:user) }
let(:reporter) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Repositories do
RSpec.describe API::Repositories do
let(:project) { create(:project, :repository) }
describe "GET /projects/:id/repository/archive(.:format)?:sha" do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::ResourceLabelEvents do
RSpec.describe API::ResourceLabelEvents do
let_it_be(:user) { create(:user) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Scim do
RSpec.describe API::Scim do
let(:user) { create(:user) }
let(:scim_token) { create(:scim_oauth_access_token, group: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Search do
RSpec.describe API::Search do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
let(:project) { create(:project, :public, :repository, :wiki_repo, name: 'awesome project', group: group) }
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe API::Services do
RSpec.describe API::Services do
let_it_be(:user) { create(:user) }
let_it_be(:project) do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Settings, 'EE Settings' do
RSpec.describe API::Settings, 'EE Settings' do
include StubENV
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Templates do
RSpec.describe API::Templates do
files = {
'Dockerfile/custom.dockerfile' => 'Custom dockerfiles',
'gitignore/custom.gitignore' => 'Custom gitignores',
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Todos do
RSpec.describe API::Todos do
let_it_be(:group) { create(:group) }
let_it_be(:project) { create(:project, group: group) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Triggers do
RSpec.describe API::Triggers do
let(:user) { create(:user) }
let(:project) { create(:project, :repository, :auto_devops, creator: user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Unleash do
RSpec.describe API::Unleash do
include FeatureFlagHelpers
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Users do
RSpec.describe API::Users do
let(:user) { create(:user) }
let(:admin) { create(:admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::V3::Github do
RSpec.describe API::V3::Github do
let(:user) { create(:user) }
let(:unauthorized_user) { create(:user) }
let(:admin) { create(:user, :admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::VisualReviewDiscussions do
RSpec.describe API::VisualReviewDiscussions do
shared_examples_for 'accepting request without authentication' do
let(:request) do
post api("/projects/#{project_id}/merge_requests/#{merge_request.iid}/visual_review_discussions"), params: note_params
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::Vulnerabilities do
RSpec.describe API::Vulnerabilities do
include AccessMatchersForRequest
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::VulnerabilityExports do
RSpec.describe API::VulnerabilityExports do
include AccessMatchersForRequest
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::VulnerabilityFindings do
RSpec.describe API::VulnerabilityFindings do
include AccessMatchersForRequest
let_it_be(:project) { create(:project, :public) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe API::VulnerabilityIssueLinks do
RSpec.describe API::VulnerabilityIssueLinks do
include AccessMatchersForRequest
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe "Git HTTP requests (Geo)", :geo do
RSpec.describe "Git HTTP requests (Geo)", :geo do
include TermsHelper
include ::EE::GeoHelpers
include GitHttpHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Git HTTP requests' do
RSpec.describe 'Git HTTP requests' do
include GitHttpHelpers
include WorkhorseHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'view audit events' do
RSpec.describe 'view audit events' do
describe 'GET /groups/:group/-/audit_events' do
let_it_be(:group) { create(:group) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Groups::ClustersController do
RSpec.describe Groups::ClustersController do
let(:group) { create(:group) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'contribution analytics' do
RSpec.describe 'contribution analytics' do
let(:user) { create(:user) }
let(:group) { create(:group)}
......
# frozen_string_literal: true
require 'spec_helper'
describe Groups::RoadmapController do
RSpec.describe Groups::RoadmapController do
let(:user) { create(:user) }
let(:group) { create(:group, :public) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'GET /groups/*group_id/-/security/projects' do
RSpec.describe 'GET /groups/*group_id/-/security/projects' do
let(:group) { create(:group) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GroupsController, type: :request do
RSpec.describe GroupsController, type: :request do
let(:user) { create(:user) }
let(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Jira authorization requests' do
RSpec.describe 'Jira authorization requests' do
let(:user) { create :user }
let(:application) { create :oauth_application, scopes: 'api' }
let(:redirect_uri) { oauth_jira_callback_url(host: "http://www.example.com") }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Jira referenced paths', type: :request do
RSpec.describe 'Jira referenced paths', type: :request do
using RSpec::Parameterized::TableSyntax
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe JwtController do
RSpec.describe JwtController do
context 'authenticating against container registry' do
let(:user) { create(:user) }
let(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Git LFS API and storage' do
RSpec.describe 'Git LFS API and storage' do
include WorkhorseHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'OmniAuth Kerberos SPNEGO' do
RSpec.describe 'OmniAuth Kerberos SPNEGO' do
let(:path) { '/users/auth/kerberos_spnego/negotiate' }
let(:controller_class) { OmniauthKerberosSpnegoController }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Analytics::CodeReviewsController, type: :request do
RSpec.describe Projects::Analytics::CodeReviewsController, type: :request do
let(:user) { create :user }
let(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'view audit events' do
RSpec.describe 'view audit events' do
describe 'GET /:namespace/:project/-/audit_events' do
let_it_be(:project) { create(:project, :repository) }
let_it_be(:user) { project.owner }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::IssueLinksController do
RSpec.describe Projects::IssueLinksController do
let(:user) { create :user }
let(:project) { create(:project_empty_repo) }
let(:issue) { create :issue, project: project }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::IssuesController do
RSpec.describe Projects::IssuesController do
let_it_be(:issue) { create(:issue) }
let_it_be(:group) { create(:group) }
let_it_be(:project) { issue.project }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::MergeRequestsController do
RSpec.describe Projects::MergeRequestsController do
let(:merge_request) { create(:merge_request) }
let(:project) { merge_request.project }
let(:user) { merge_request.author }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::MirrorsController do
RSpec.describe Projects::MirrorsController do
let(:project) do
create(:project, :repository,
mirror: true,
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Rack Attack global throttles' do
RSpec.describe 'Rack Attack global throttles' do
include_context 'rack attack cache store'
context 'when the request is from Geo secondary' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Rack Attack EE throttles' do
RSpec.describe 'Rack Attack EE throttles' do
include RackAttackSpecHelpers
let(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Repositories::GitHttpController, type: :request do
RSpec.describe Repositories::GitHttpController, type: :request do
include GitHttpHelpers
include ::EE::GeoHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe SearchController, type: :request do
RSpec.describe SearchController, type: :request do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
let_it_be(:project) { create(:project, :public, :repository, :wiki_repo, name: 'awesome project', group: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'GET /-/security/vulnerability_findings' do
RSpec.describe 'GET /-/security/vulnerability_findings' do
it_behaves_like 'security dashboard JSON endpoint' do
let(:security_dashboard_request) do
get security_vulnerability_findings_path, headers: { 'ACCEPT' => 'application/json' }
......@@ -147,7 +147,7 @@ describe 'GET /-/security/vulnerability_findings' do
end
end
describe 'GET /-/security/vulnerability_findings/summary' do
RSpec.describe 'GET /-/security/vulnerability_findings/summary' do
it_behaves_like 'security dashboard JSON endpoint' do
let(:security_dashboard_request) do
get summary_security_vulnerability_findings_path, headers: { 'ACCEPT' => 'application/json' }
......@@ -229,7 +229,7 @@ describe 'GET /-/security/vulnerability_findings/summary' do
end
end
describe 'GET /-/security/vulnerability_findings/history' do
RSpec.describe 'GET /-/security/vulnerability_findings/history' do
it_behaves_like 'security dashboard JSON endpoint' do
let(:security_dashboard_request) do
get(
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'GET /-/security/vulnerable_projects' do
RSpec.describe 'GET /-/security/vulnerable_projects' do
it_behaves_like 'security dashboard JSON endpoint' do
let(:security_dashboard_request) do
get security_vulnerable_projects_path, headers: { 'ACCEPT' => 'application/json' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe SmartcardController, type: :request do
RSpec.describe SmartcardController, type: :request do
include LdapHelpers
let(:smartcard_host) { 'smartcard.example.com' }
......
# frozen_string_literal: true
require 'spec_helper'
describe 'EE-specific admin routing' do
RSpec.describe 'EE-specific admin routing' do
describe Admin::Geo::ProjectsController, 'routing' do
let(:project_registry) { create(:geo_project_registry) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Analytics' do
RSpec.describe 'Analytics' do
include Warden::Test::Helpers
it 'redirects to sign_in if user is not authenticated' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group routing', "routing" do
RSpec.describe 'Group routing', "routing" do
include RSpec::Rails::RoutingExampleGroup
describe 'subgroup "boards"' do
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe 'EE-specific project routing' do
RSpec.describe 'EE-specific project routing' do
before do
allow(Project).to receive(:find_by_full_path).with('gitlab/gitlabhq', any_args).and_return(true)
end
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'routes to the proper webhooks controller', type: :routing do
RSpec.describe 'routes to the proper webhooks controller', type: :routing do
context 'with a project context' do
let(:project) { create(:project) }
let(:project_hook) { create(:project_hook) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Analytics::CycleAnalytics::EventEntity do
RSpec.describe Analytics::CycleAnalytics::EventEntity do
describe '#type' do
it 'returns `simple` for non-label based events' do
event = Gitlab::Analytics::CycleAnalytics::StageEvents::IssueCreated
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe AuditEventEntity do
RSpec.describe AuditEventEntity do
let(:event) { create(:audit_event) }
subject { described_class.new(event) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe AuditEventSerializer do
RSpec.describe AuditEventSerializer do
describe '.represent' do
it 'returns an empty array when there are no audit events' do
result = described_class.new.represent([])
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe BlockingMergeRequestEntity do
RSpec.describe BlockingMergeRequestEntity do
let(:merge_request) { create(:merge_request) }
let(:project) { merge_request.target_project }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe BoardSerializer do
RSpec.describe BoardSerializer do
let(:resource) { create(:board) }
let(:json_entity) do
described_class.new
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Clusters::DeploymentEntity do
RSpec.describe Clusters::DeploymentEntity do
let(:deployment) { create(:deployment) }
subject { described_class.new(deployment).as_json }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Clusters::EnvironmentEntity do
RSpec.describe Clusters::EnvironmentEntity do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
let_it_be(:project, refind: true) { create(:project, group: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Clusters::EnvironmentSerializer do
RSpec.describe Clusters::EnvironmentSerializer do
include KubernetesHelpers
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe DashboardEnvironmentEntity do
RSpec.describe DashboardEnvironmentEntity do
describe '.as_json' do
it 'includes environment attributes' do
user = create(:user)
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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