Commit 2e1fff6c authored by Robert Speicher's avatar Robert Speicher

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

RSpec zero monkey patching mode

See merge request gitlab-org/gitlab!33734
parents c85771ad 2176cbda
......@@ -2,6 +2,6 @@
require 'spec_helper'
describe InstanceStatistics::DevOpsScoreController do
RSpec.describe InstanceStatistics::DevOpsScoreController do
it_behaves_like 'instance statistics availability'
end
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe InvitesController do
RSpec.describe InvitesController do
let(:token) { '123456' }
let(:user) { create(:user) }
let(:member) { create(:project_member, invite_token: token, invite_email: 'test@abc.com', user: user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Ldap::OmniauthCallbacksController do
RSpec.describe Ldap::OmniauthCallbacksController do
include_context 'Ldap::OmniauthCallbacksController'
it 'allows sign in' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe MetricsController, :request_store do
RSpec.describe MetricsController, :request_store do
include StubENV
let(:metrics_multiproc_dir) { @metrics_multiproc_dir }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe NotificationSettingsController do
RSpec.describe NotificationSettingsController do
let(:project) { create(:project) }
let(:group) { create(:group, :internal) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Oauth::ApplicationsController do
RSpec.describe Oauth::ApplicationsController do
let(:user) { create(:user) }
let(:application) { create(:oauth_application, owner: user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Oauth::AuthorizationsController do
RSpec.describe Oauth::AuthorizationsController do
let!(:application) { create(:oauth_application, scopes: 'api read_user', redirect_uri: 'http://example.com') }
let(:params) do
{
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Oauth::AuthorizedApplicationsController do
RSpec.describe Oauth::AuthorizedApplicationsController do
let(:user) { create(:user) }
let(:guest) { create(:user) }
let(:application) { create(:oauth_application, owner: guest) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe OmniauthCallbacksController, type: :controller do
RSpec.describe OmniauthCallbacksController, type: :controller do
include LoginHelpers
describe 'omniauth' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe PasswordsController do
RSpec.describe PasswordsController do
describe '#check_password_authentication_available' do
before do
@request.env["devise.mapping"] = Devise.mappings[:user]
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Profiles::AccountsController do
RSpec.describe Profiles::AccountsController do
describe 'DELETE unlink' do
let(:user) { create(:omniauth_user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Profiles::AvatarsController do
RSpec.describe Profiles::AvatarsController do
let(:user) { create(:user, avatar: fixture_file_upload("spec/fixtures/dk.png")) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Profiles::EmailsController do
RSpec.describe Profiles::EmailsController do
let(:user) { create(:user) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Profiles::KeysController do
RSpec.describe Profiles::KeysController do
let(:user) { create(:user) }
describe 'POST #create' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Profiles::NotificationsController do
RSpec.describe Profiles::NotificationsController do
let(:user) do
create(:user) do |user|
user.emails.create(email: 'original@example.com', confirmed_at: Time.current)
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Profiles::PersonalAccessTokensController do
RSpec.describe Profiles::PersonalAccessTokensController do
let(:user) { create(:user) }
let(:token_attributes) { attributes_for(:personal_access_token) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Profiles::PreferencesController do
RSpec.describe Profiles::PreferencesController do
let(:user) { create(:user) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Profiles::TwoFactorAuthsController do
RSpec.describe Profiles::TwoFactorAuthsController do
before do
# `user` should be defined within the action-specific describe blocks
sign_in(user)
......
......@@ -2,7 +2,7 @@
require('spec_helper')
describe ProfilesController, :request_store do
RSpec.describe ProfilesController, :request_store do
let(:user) { create(:user) }
describe 'POST update' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::AlertManagementController do
RSpec.describe Projects::AlertManagementController do
let_it_be(:project) { create(:project) }
let_it_be(:role) { :developer }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Alerting::NotificationsController do
RSpec.describe Projects::Alerting::NotificationsController do
let_it_be(:project) { create(:project) }
let_it_be(:environment) { create(:environment, project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::ArtifactsController do
RSpec.describe Projects::ArtifactsController do
include RepoHelpers
let(:user) { project.owner }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::AutocompleteSourcesController do
RSpec.describe Projects::AutocompleteSourcesController do
let_it_be(:group) { create(:group) }
let_it_be(:project) { create(:project, namespace: group) }
let_it_be(:issue) { create(:issue, project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::AvatarsController do
RSpec.describe Projects::AvatarsController do
let_it_be(:project) { create(:project, :repository) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::BadgesController do
RSpec.describe Projects::BadgesController do
let(:project) { pipeline.project }
let!(:pipeline) { create(:ci_empty_pipeline) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::BlameController do
RSpec.describe Projects::BlameController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::BlobController do
RSpec.describe Projects::BlobController do
include ProjectForksHelper
let(:project) { create(:project, :public, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::BoardsController do
RSpec.describe Projects::BoardsController do
let(:project) { create(:project) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::BranchesController do
RSpec.describe Projects::BranchesController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
let(:developer) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Ci::DailyBuildGroupReportResultsController do
RSpec.describe Projects::Ci::DailyBuildGroupReportResultsController do
describe 'GET index' do
let(:project) { create(:project, :public, :repository) }
let(:ref_path) { 'refs/heads/master' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Ci::LintsController do
RSpec.describe Projects::Ci::LintsController do
include StubRequests
let(:project) { create(:project, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Clusters::ApplicationsController do
RSpec.describe Projects::Clusters::ApplicationsController do
include AccessMatchersForController
def current_application
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::ClustersController do
RSpec.describe Projects::ClustersController do
include AccessMatchersForController
include GoogleApi::CloudPlatformHelpers
include KubernetesHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::CommitController do
RSpec.describe Projects::CommitController do
let_it_be(:project) { create(:project, :repository) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::CommitsController do
RSpec.describe Projects::CommitsController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::CompareController do
RSpec.describe Projects::CompareController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::CycleAnalytics::EventsController do
RSpec.describe Projects::CycleAnalytics::EventsController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::CycleAnalyticsController do
RSpec.describe Projects::CycleAnalyticsController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::DeployKeysController do
RSpec.describe Projects::DeployKeysController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
let(:admin) { create(:admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::DeploymentsController do
RSpec.describe Projects::DeploymentsController do
include ApiHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::DesignManagement::Designs::RawImagesController do
RSpec.describe Projects::DesignManagement::Designs::RawImagesController do
include DesignManagementTestHelpers
let_it_be(:project) { create(:project, :private) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::DesignManagement::Designs::ResizedImageController do
RSpec.describe Projects::DesignManagement::Designs::ResizedImageController do
include DesignManagementTestHelpers
let_it_be(:project) { create(:project, :private) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::DiscussionsController do
RSpec.describe Projects::DiscussionsController do
let(:user) { create(:user) }
let(:merge_request) { create(:merge_request) }
let(:project) { merge_request.source_project }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Environments::PrometheusApiController do
RSpec.describe Projects::Environments::PrometheusApiController do
let_it_be(:project) { create(:project) }
let_it_be(:environment) { create(:environment, project: project) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Environments::SampleMetricsController do
RSpec.describe Projects::Environments::SampleMetricsController do
include StubENV
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::EnvironmentsController do
RSpec.describe Projects::EnvironmentsController do
include MetricsDashboardHelpers
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::ErrorTracking::ProjectsController do
RSpec.describe Projects::ErrorTracking::ProjectsController do
let_it_be(:project) { create(:project) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::ErrorTracking::StackTracesController do
RSpec.describe Projects::ErrorTracking::StackTracesController do
let_it_be(:project) { create(:project) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::ErrorTrackingController do
RSpec.describe Projects::ErrorTrackingController do
let_it_be(:project) { create(:project) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::FindFileController do
RSpec.describe Projects::FindFileController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::ForksController do
RSpec.describe Projects::ForksController do
let(:user) { create(:user) }
let(:project) { create(:project, :public, :repository) }
let(:forked_project) { Projects::ForkService.new(project, user, name: 'Some name').execute }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::GrafanaApiController do
RSpec.describe Projects::GrafanaApiController do
let_it_be(:project) { create(:project) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::GraphsController do
RSpec.describe Projects::GraphsController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::GroupLinksController do
RSpec.describe Projects::GroupLinksController do
let(:group) { create(:group, :private) }
let(:group2) { create(:group, :private) }
let(:project) { create(:project, :private, group: group2) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::HooksController do
RSpec.describe Projects::HooksController do
let(:project) { create(:project) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Import::JiraController do
RSpec.describe Projects::Import::JiraController do
include JiraServiceHelper
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::ImportsController do
RSpec.describe Projects::ImportsController do
let(:user) { create(:user) }
let(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::IssuesController do
RSpec.describe Projects::IssuesController do
include ProjectForksHelper
include_context 'includes Spam constants'
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::JobsController, :clean_gitlab_redis_shared_state do
RSpec.describe Projects::JobsController, :clean_gitlab_redis_shared_state do
include ApiHelpers
include HttpIOHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::LabelsController do
RSpec.describe Projects::LabelsController do
let(:group) { create(:group) }
let(:project) { create(:project, namespace: group) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::LogsController do
RSpec.describe Projects::LogsController do
include KubernetesHelpers
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::MattermostsController do
RSpec.describe Projects::MattermostsController do
let!(:project) { create(:project) }
let!(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::MergeRequests::ConflictsController do
RSpec.describe Projects::MergeRequests::ConflictsController do
let(:project) { create(:project, :repository) }
let(:user) { project.owner }
let(:merge_request) { create(:merge_request_with_diffs, target_project: project, source_project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::MergeRequests::ContentController do
RSpec.describe Projects::MergeRequests::ContentController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
let(:merge_request) { create(:merge_request, target_project: project, source_project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::MergeRequests::CreationsController do
RSpec.describe Projects::MergeRequests::CreationsController do
let(:project) { create(:project, :repository) }
let(:user) { project.owner }
let(:fork_project) { create(:forked_project_with_submodules) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::MergeRequests::DiffsController do
RSpec.describe Projects::MergeRequests::DiffsController do
include ProjectForksHelper
shared_examples '404 for unexistent diffable' do
......
# frozen_string_literal: true
require 'spec_helper'
describe Projects::MergeRequests::DraftsController do
RSpec.describe Projects::MergeRequests::DraftsController do
include RepoHelpers
let(:project) { create(:project, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::MergeRequestsController do
RSpec.describe Projects::MergeRequestsController do
include ProjectForksHelper
include Gitlab::Routing
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::MilestonesController do
RSpec.describe Projects::MilestonesController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
let(:milestone) { create(:milestone, project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::MirrorsController do
RSpec.describe Projects::MirrorsController do
include ReactiveCachingHelpers
shared_examples 'only admin is allowed when mirroring is disabled' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::NotesController do
RSpec.describe Projects::NotesController do
include ProjectForksHelper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::PagesController do
RSpec.describe Projects::PagesController do
let(:user) { create(:user) }
let(:project) { create(:project, :public) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::PagesDomainsController do
RSpec.describe Projects::PagesDomainsController do
let(:user) { create(:user) }
let(:project) { create(:project) }
let!(:pages_domain) { create(:pages_domain, project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::PerformanceMonitoring::DashboardsController do
RSpec.describe Projects::PerformanceMonitoring::DashboardsController do
let_it_be(:user) { create(:user) }
let_it_be(:namespace) { create(:namespace) }
let!(:project) { create(:project, :repository, name: 'dashboard-project', namespace: namespace) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::PipelineSchedulesController do
RSpec.describe Projects::PipelineSchedulesController do
include AccessMatchersForController
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::PipelinesController do
RSpec.describe Projects::PipelinesController do
include ApiHelpers
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::PipelinesSettingsController do
RSpec.describe Projects::PipelinesSettingsController do
let_it_be(:user) { create(:user) }
let_it_be(:project_auto_devops) { create(:project_auto_devops) }
let(:project) { project_auto_devops.project }
......
......@@ -2,7 +2,7 @@
require('spec_helper')
describe Projects::ProjectMembersController do
RSpec.describe Projects::ProjectMembersController do
let(:user) { create(:user) }
let(:group) { create(:group, :public) }
let(:project) { create(:project, :public) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Prometheus::AlertsController do
RSpec.describe Projects::Prometheus::AlertsController do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project) }
let_it_be(:environment) { create(:environment, project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Prometheus::MetricsController do
RSpec.describe Projects::Prometheus::MetricsController do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:prometheus_project) }
......
......@@ -2,7 +2,7 @@
require('spec_helper')
describe Projects::ProtectedBranchesController do
RSpec.describe Projects::ProtectedBranchesController do
let(:project) { create(:project, :repository) }
let(:protected_branch) { create(:protected_branch, project: project) }
let(:project_params) { { namespace_id: project.namespace.to_param, project_id: project } }
......
......@@ -2,7 +2,7 @@
require('spec_helper')
describe Projects::ProtectedTagsController do
RSpec.describe Projects::ProtectedTagsController do
describe "GET #index" do
let(:project) { create(:project_empty_repo, :public) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::RawController do
RSpec.describe Projects::RawController do
include RepoHelpers
let(:project) { create(:project, :public, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::RefsController do
RSpec.describe Projects::RefsController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Registry::RepositoriesController do
RSpec.describe Projects::Registry::RepositoriesController do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project, :private) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Registry::TagsController do
RSpec.describe Projects::Registry::TagsController do
let(:user) { create(:user) }
let(:project) { create(:project, :private) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Releases::EvidencesController do
RSpec.describe Projects::Releases::EvidencesController do
let!(:project) { create(:project, :repository, :public) }
let_it_be(:private_project) { create(:project, :repository, :private) }
let_it_be(:developer) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::ReleasesController do
RSpec.describe Projects::ReleasesController do
let!(:project) { create(:project, :repository, :public) }
let_it_be(:private_project) { create(:project, :repository, :private) }
let_it_be(:developer) { create(:user) }
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe Projects::RepositoriesController do
RSpec.describe Projects::RepositoriesController do
let(:project) { create(:project, :repository) }
describe "GET archive" do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::RunnersController do
RSpec.describe Projects::RunnersController do
let(:user) { create(:user) }
let(:project) { create(:project) }
let(:runner) { create(:ci_runner, :project, projects: [project]) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Serverless::FunctionsController do
RSpec.describe Projects::Serverless::FunctionsController do
include KubernetesHelpers
include ReactiveCachingHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::ServiceHookLogsController do
RSpec.describe Projects::ServiceHookLogsController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
let(:service) { create(:drone_ci_service, project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::ServicesController do
RSpec.describe Projects::ServicesController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
let(:service) { create(:jira_service, project: project) }
......
......@@ -2,7 +2,7 @@
require('spec_helper')
describe Projects::Settings::AccessTokensController do
RSpec.describe Projects::Settings::AccessTokensController do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require('spec_helper')
describe Projects::Settings::CiCdController do
RSpec.describe Projects::Settings::CiCdController do
let_it_be(:user) { create(:user) }
let_it_be(:project_auto_devops) { create(:project_auto_devops) }
let(:project) { project_auto_devops.project }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Settings::IntegrationsController do
RSpec.describe Projects::Settings::IntegrationsController do
let(:project) { create(:project, :public) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Settings::OperationsController do
RSpec.describe Projects::Settings::OperationsController do
let_it_be(:user) { create(:user) }
let_it_be(:project, reload: true) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::Settings::RepositoryController do
RSpec.describe Projects::Settings::RepositoryController do
let(:project) { create(:project_empty_repo, :public) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::SnippetsController do
RSpec.describe Projects::SnippetsController do
include Gitlab::Routing
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Projects::StagesController do
RSpec.describe Projects::StagesController do
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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