Commit eceeaf9d authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

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

RSpec zero monkey patching mode

See merge request gitlab-org/gitlab!33723
parents 7324b46c 83b2b228
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Audit Events', :js do
RSpec.describe 'Projects > Audit Events', :js do
let(:user) { create(:user) }
let(:pete) { create(:user, name: 'Pete') }
let(:project) { create(:project, :repository, namespace: user.namespace) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Gcp Cluster', :js do
RSpec.describe 'Gcp Cluster', :js do
include GoogleApi::CloudPlatformHelpers
let(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'EE Clusters', :js do
RSpec.describe 'EE Clusters', :js do
include GoogleApi::CloudPlatformHelpers
let(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project' do
RSpec.describe 'Project' do
describe 'Custom instance-level projects templates' do
let(:user) { create(:user) }
let(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Environments page', :js do
RSpec.describe 'Environments page', :js do
let(:project) { create(:project, :repository) }
let!(:environment) { create(:environment, name: 'production', project: project) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User edits feature flag user list', :js do
RSpec.describe 'User edits feature flag user list', :js do
let_it_be(:project) { create(:project) }
let_it_be(:developer) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User sees feature flag user list details', :js do
RSpec.describe 'User sees feature flag user list details', :js do
let_it_be(:project) { create(:project) }
let_it_be(:developer) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User creates feature flag', :js do
RSpec.describe 'User creates feature flag', :js do
include FeatureFlagHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User deletes feature flag', :js do
RSpec.describe 'User deletes feature flag', :js do
include FeatureFlagHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User sees feature flag list', :js do
RSpec.describe 'User sees feature flag list', :js do
include FeatureFlagHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User updates feature flag', :js do
RSpec.describe 'User updates feature flag', :js do
include FeatureFlagHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project Insights' do
RSpec.describe 'Project Insights' do
it_behaves_like 'Insights page' do
let_it_be(:entity) { create(:project) }
let(:route) { url_for([entity.namespace, entity, :insights]) }
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "User creates issue", :js do
RSpec.describe "User creates issue", :js do
let(:project) { create(:project_empty_repo, :public) }
let(:user) { create(:user) }
......
......@@ -3,7 +3,7 @@
require 'spec_helper'
require 'tempfile'
describe 'Jobs', :clean_gitlab_redis_shared_state do
RSpec.describe 'Jobs', :clean_gitlab_redis_shared_state do
let(:user) { create(:user) }
let(:user_access_level) { :developer }
let(:pipeline) { create(:ci_pipeline, project: project) }
......
# frozen_string_literal: true
require 'spec_helper'
describe 'Kerberos clone instructions', :js do
RSpec.describe 'Kerberos clone instructions', :js do
include MobileHelpers
let(:project) { create(:project, :empty_repo) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'EE > Projects > Licenses > Maintainer views policies', :js do
RSpec.describe 'EE > Projects > Licenses > Maintainer views policies', :js do
let_it_be(:project) { create(:project) }
let_it_be(:maintainer) do
create(:user).tap do |user|
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project > Members > Invite group and members', :js do
RSpec.describe 'Project > Members > Invite group and members', :js do
include Select2Helper
include ActionView::Helpers::DateHelper
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Members > Member is removed from project' do
RSpec.describe 'Projects > Members > Member is removed from project' do
let(:user) { create(:user) }
let(:project) { create(:project) }
let(:other_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Members > Member leaves project' do
RSpec.describe 'Projects > Members > Member leaves project' do
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User approves a merge request', :js do
RSpec.describe 'User approves a merge request', :js do
let(:merge_request) { create(:merge_request, source_project: project, target_project: project) }
let(:project) { create(:project, :repository, approvals_before_merge: 1) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Merge Requests > User edits a merge request' do
RSpec.describe 'Projects > Merge Requests > User edits a merge request' do
let(:user) { create(:user) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Milestones on EE' do
RSpec.describe 'Milestones on EE' do
let(:user) { create(:user) }
let(:project) { create(:project, name: 'test', namespace: user.namespace) }
let(:milestone) { create(:milestone, project: project, start_date: Date.today, due_date: 7.days.from_now) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project mirror', :js do
RSpec.describe 'Project mirror', :js do
include ReactiveCachingHelpers
let(:project) { create(:project, :repository, creator: user, name: 'Victorialand') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project navbar' do
RSpec.describe 'Project navbar' do
include NavbarStructureHelper
include_context 'project navbar structure'
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'New project' do
RSpec.describe 'New project' do
let(:user) { create(:admin) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'PackageFiles' do
RSpec.describe 'PackageFiles' do
let(:user) { create(:user) }
let(:project) { create(:project) }
let!(:package) { create(:maven_package, project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Packages' do
RSpec.describe 'Packages' do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Path Locks', :js do
RSpec.describe 'Path Locks', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :repository, namespace: user.namespace) }
let(:tree_path) { project_tree_path(project, project.repository.root_ref) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Pipeline', :js do
RSpec.describe 'Pipeline', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Push Rules', :js do
RSpec.describe 'Projects > Push Rules', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :repository, namespace: user.namespace) }
let(:foo) {{ reject_unsigned_commits: 'Reject unsigned commits' }}
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Requirements list', :js do
RSpec.describe 'Requirements list', :js do
let_it_be(:user) { create(:user) }
let_it_be(:user_guest) { create(:user) }
let_it_be(:project) { create(:project, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Prometheus custom metrics', :js do
RSpec.describe 'Prometheus custom metrics', :js do
include PrometheusHelpers
include_context 'project service activation'
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates GitHub Service' do
RSpec.describe 'User activates GitHub Service' do
include_context 'project service activation'
context 'without a license' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project settings > [EE] repository' do
RSpec.describe 'Project settings > [EE] repository' do
include Select2Helper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project settings > Issues', :js do
RSpec.describe 'Project settings > Issues', :js do
let(:project) { create(:project, :public) }
let(:user) { create(:user) }
......
# frozen_string_literal: true
require 'spec_helper'
describe 'Project settings > [EE] Merge Requests', :js do
RSpec.describe 'Project settings > [EE] Merge Requests', :js do
include GitlabRoutingHelper
include FeatureApprovalHelper
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > Packages', :js do
RSpec.describe 'Projects > Settings > Packages', :js do
let(:project) { create(:project) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project Subscriptions', :js do
RSpec.describe 'Project Subscriptions', :js do
let(:project) { create(:project, :public, :repository) }
let(:upstream_project) { create(:project, :public, :repository) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Protected Environments' do
RSpec.describe 'Protected Environments' do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
let(:environments) { %w(production development staging test) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project settings > [EE] repository' do
RSpec.describe 'Project settings > [EE] repository' do
let(:user) { create(:user) }
let(:project) { create(:project_empty_repo) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Service Desk Setting', :js do
RSpec.describe 'Service Desk Setting', :js do
let(:project) { create(:project_empty_repo, :private, service_desk_enabled: false) }
let(:presenter) { project.present(current_user: user) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Slack application' do
RSpec.describe 'Slack application' do
let(:project) { create(:project) }
let(:user) { create(:user) }
let(:role) { :developer }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'EE > Projects > Settings > User manages approval rule settings' do
RSpec.describe 'EE > Projects > Settings > User manages approval rule settings' do
let(:project) { create(:project) }
let(:user) { project.owner }
let(:path) { edit_project_path(project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'EE > Projects > Settings > User manages issue template' do
RSpec.describe 'EE > Projects > Settings > User manages issue template' do
let(:user) { create(:user) }
let(:project) { create(:project, :public, :repository, namespace: user.namespace) }
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "User manages members" do
RSpec.describe "User manages members" do
let_it_be(:group) { create(:group) }
let_it_be(:project) { create(:project, namespace: group) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User manages merge pipelines option', :js do
RSpec.describe 'User manages merge pipelines option', :js do
let(:project) { create(:project) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'EE > Projects > Settings > User manages merge requests template' do
RSpec.describe 'EE > Projects > Settings > User manages merge requests template' do
let(:user) { create(:user) }
let(:project) { create(:project, :public, :repository, namespace: user.namespace) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > Developer views empty project instructions' do
RSpec.describe 'Projects > Show > Developer views empty project instructions' do
let(:project) { create(:project, :empty_repo) }
let(:developer) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project show page', :feature do
RSpec.describe 'Project show page', :feature do
let_it_be(:user) { create(:user) }
describe 'stat button existence' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Tracings Content Security Policy' do
RSpec.describe 'Tracings Content Security Policy' do
let_it_be(:user) { create(:user) }
let(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project', :js do
RSpec.describe 'Project', :js do
let(:template_text) { 'Custom license template content' }
let(:group) { create(:group) }
let(:template_project) { create(:project, :custom_repo, namespace: group, files: { 'LICENSE/custom.txt' => template_text }) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'File blob > Code owners', :js do
RSpec.describe 'File blob > Code owners', :js do
let(:project) { create(:project, :private, :repository) }
let(:user) { project.owner }
let(:code_owner) { create(:user, username: 'documentation-owner') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Promotions', :js do
RSpec.describe 'Promotions', :js do
let(:admin) { create(:admin) }
let(:user) { create(:user) }
let(:otherdeveloper) { create(:user, name: 'TheOtherDeveloper') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Protected Branches', :js do
RSpec.describe 'Protected Branches', :js do
include ProtectedBranchHelpers
let(:user) { create(:user, :admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Protected Tags', :js do
RSpec.describe 'Protected Tags', :js do
include ProtectedTagHelpers
let(:user) { create(:user, :admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Geo read-only message', :geo do
RSpec.describe 'Geo read-only message', :geo do
include ::EE::GeoHelpers
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'New group screen', :js do
RSpec.describe 'New group screen', :js do
let_it_be(:user) { create(:user) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'New project screen', :js do
RSpec.describe 'New project screen', :js do
let_it_be(:user) { create(:user) }
let_it_be(:namespace) { create(:group) }
let(:in_subscription_flow) { false }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Welcome screen', :js do
RSpec.describe 'Welcome screen', :js do
let_it_be(:user) { create(:user) }
let(:in_invitation_flow) { false }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Global elastic search', :elastic, :sidekiq_inline do
RSpec.describe 'Global elastic search', :elastic, :sidekiq_inline do
let(:user) { create(:user) }
let(:project) { create(:project, :repository, :wiki_repo, namespace: user.namespace) }
......@@ -265,7 +265,7 @@ describe 'Global elastic search', :elastic, :sidekiq_inline do
end
end
describe 'Global elastic search redactions', :elastic do
RSpec.describe 'Global elastic search redactions', :elastic do
it_behaves_like 'a redacted search results page' do
let(:search_path) { explore_root_path }
end
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group elastic search', :js, :elastic, :sidekiq_might_not_need_inline do
RSpec.describe 'Group elastic search', :js, :elastic, :sidekiq_might_not_need_inline do
let(:user) { create(:user) }
let(:group) { create(:group) }
let(:project) { create(:project, :repository, :wiki_repo, namespace: group) }
......@@ -92,7 +92,7 @@ describe 'Group elastic search', :js, :elastic, :sidekiq_might_not_need_inline d
end
end
describe 'Group elastic search redactions', :elastic do
RSpec.describe 'Group elastic search redactions', :elastic do
it_behaves_like 'a redacted search results page' do
let(:search_path) { group_path(public_group) }
end
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project elastic search', :js, :elastic do
RSpec.describe 'Project elastic search', :js, :elastic do
let(:user) { create(:user) }
let(:project) { create(:project, :repository, :wiki_repo, namespace: user.namespace) }
......@@ -86,7 +86,7 @@ describe 'Project elastic search', :js, :elastic do
end
end
describe 'Project elastic search redactions', :elastic do
RSpec.describe 'Project elastic search redactions', :elastic do
it_behaves_like 'a redacted search results page' do
let(:search_path) { project_path(public_restricted_project) }
end
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Snippet elastic search', :js, :elastic, :aggregate_failures, :sidekiq_might_not_need_inline do
RSpec.describe 'Snippet elastic search', :js, :elastic, :aggregate_failures, :sidekiq_might_not_need_inline do
let(:public_project) { create(:project, :public) }
let(:authorized_user) { create(:user) }
let(:authorized_project) { create(:project, namespace: authorized_user.namespace) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe "Admin::Projects" do
RSpec.describe "Admin::Projects" do
include AccessMatchers
describe "GET /admin/projects" do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe "Dashboard access" do
RSpec.describe "Dashboard access" do
include AccessMatchers
describe "GET /dashboard" do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe '[EE] Internal Group access' do
RSpec.describe '[EE] Internal Group access' do
include AccessMatchers
let_it_be(:group) { create(:group, :internal) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe '[EE] Private Group access' do
RSpec.describe '[EE] Private Group access' do
include AccessMatchers
let_it_be(:group) { create(:group, :private) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe '[EE] Public Group access' do
RSpec.describe '[EE] Public Group access' do
include AccessMatchers
let_it_be(:group) { create(:group, :public) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe "Profile access" do
RSpec.describe "Profile access" do
include AccessMatchers
describe "GET /profile/keys" do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe '[EE] Internal Project Access' do
RSpec.describe '[EE] Internal Project Access' do
include AccessMatchers
let_it_be(:project) { create(:project, :internal, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe '[EE] Private Project Access' do
RSpec.describe '[EE] Private Project Access' do
include AccessMatchers
let_it_be(:project) { create(:project, :private, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe '[EE] Public Project Access' do
RSpec.describe '[EE] Public Project Access' do
include AccessMatchers
let_it_be(:project) { create(:project, :public, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe "Internal Project Snippets Access" do
RSpec.describe "Internal Project Snippets Access" do
include AccessMatchers
let(:project) { create(:project, :internal) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe "Private Project Snippets Access" do
RSpec.describe "Private Project Snippets Access" do
include AccessMatchers
let(:project) { create(:project, :private) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe "Public Project Snippets Access" do
RSpec.describe "Public Project Snippets Access" do
include AccessMatchers
let(:project) { create(:project, :public) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Signup on EE' do
RSpec.describe 'Signup on EE' do
let(:user_attrs) { attributes_for(:user) }
context 'for Gitlab.com' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Welcome screen', :js do
RSpec.describe 'Welcome screen', :js do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Subscriptions Content Security Policy' do
RSpec.describe 'Subscriptions Content Security Policy' do
subject { response_headers['Content-Security-Policy'] }
let_it_be(:default_csp_values) { "'self' https://some-cdn.test" }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Responses' do
RSpec.describe 'Responses' do
it 'Shows a friendly message' do
visit survey_responses_path
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Trial Sign In' do
RSpec.describe 'Trial Sign In' do
let(:user) { create(:user) }
describe 'on GitLab.com' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Trial Sign Up', :js do
RSpec.describe 'Trial Sign Up', :js do
let(:user_attrs) { attributes_for(:user, first_name: 'GitLab', last_name: 'GitLab') }
describe 'on GitLab.com' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Trial Capture Lead', :js do
RSpec.describe 'Trial Capture Lead', :js do
include Select2Helper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Trial Select Namespace', :js do
RSpec.describe 'Trial Select Namespace', :js do
include Select2Helper
let(:new_group_name) { 'GitLab' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Show trial banner', :js do
RSpec.describe 'Show trial banner', :js do
include StubRequests
let!(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "Admin unsubscribes from notification" do
RSpec.describe "Admin unsubscribes from notification" do
let_it_be(:user) { create(:user) }
let_it_be(:urlsafe_email) { Base64.urlsafe_encode64(user.email) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Login' do
RSpec.describe 'Login' do
include LdapHelpers
include UserLoginHelper
include DeviseHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Signup' do
RSpec.describe 'Signup' do
context 'almost there page' do
context 'when public visibility is restricted' do
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Analytics::CycleAnalytics::StageFinder do
RSpec.describe Analytics::CycleAnalytics::StageFinder do
let_it_be(:group) { create(:group) }
let(:stage_id) { { id: Gitlab::Analytics::CycleAnalytics::DefaultStages.names.first } }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe ApprovalRules::GroupFinder do
RSpec.describe ApprovalRules::GroupFinder do
let(:rule) { create(:approval_project_rule) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe AuditLogFinder do
RSpec.describe AuditLogFinder do
let_it_be(:group) { create(:group) }
let_it_be(:subgroup) { create(:group, parent: group) }
let_it_be(:project) { create(:project, namespace: group) }
......
# frozen_string_literal: true
require 'spec_helper'
describe Auth::GroupSamlIdentityFinder do
RSpec.describe Auth::GroupSamlIdentityFinder do
let(:uid) { 1234 }
let!(:identity) { create(:group_saml_identity, extern_uid: uid) }
let(:saml_provider) { identity.saml_provider }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Autocomplete::ProjectInvitedGroupsFinder do
RSpec.describe Autocomplete::ProjectInvitedGroupsFinder do
let(:user) { create(:user) }
describe '#execute' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Boards::MilestonesFinder do
RSpec.describe Boards::MilestonesFinder do
describe '#execute' do
let(:group) { create(:group) }
let(:nested_group) { create(:group, parent: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Boards::UsersFinder do
RSpec.describe Boards::UsersFinder do
describe '#execute' do
subject { described_class.new(board) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Clusters::EnvironmentsFinder, '#execute' do
RSpec.describe Clusters::EnvironmentsFinder, '#execute' do
let(:current_user) { create(:user) }
let(:last_deployment) { create(:deployment, :success, :on_cluster) }
let(:cluster) { last_deployment.cluster }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Autocomplete::UsersFinder do
RSpec.describe Autocomplete::UsersFinder do
let(:current_user) { create(:user) }
let(:group) { create(:group) }
let(:saml_provider) { create(:saml_provider, group: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe ForkTargetsFinder do
RSpec.describe ForkTargetsFinder do
subject(:finder) { described_class.new(project, user) }
let(:project) { create :project, namespace: project_group }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GroupMembersFinder do
RSpec.describe GroupMembersFinder do
subject(:finder) { described_class.new(group) }
let(:group) { create :group }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe ProjectsFinder do
RSpec.describe ProjectsFinder do
describe '#execute' do
let_it_be(:user) { create(:user) }
let(:finder) { described_class.new(current_user: user, params: params, project_ids_relation: project_ids_relation) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe EpicsFinder do
RSpec.describe EpicsFinder do
let_it_be(:user) { create(:user) }
let_it_be(:search_user) { create(:user) }
let_it_be(:group) { create(:group, :private) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe FeatureFlagsFinder do
RSpec.describe FeatureFlagsFinder do
include FeatureFlagHelpers
let(:finder) { described_class.new(project, user, params) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::AttachmentRegistryFinder, :geo, :geo_fdw do
RSpec.describe Geo::AttachmentRegistryFinder, :geo, :geo_fdw do
include ::EE::GeoHelpers
# Using let() instead of set() because set() does not work properly
......
# frozen_string_literal: true
require 'spec_helper'
describe Geo::ContainerRepositoryRegistryFinder, :geo, :geo_fdw do
RSpec.describe Geo::ContainerRepositoryRegistryFinder, :geo, :geo_fdw do
include ::EE::GeoHelpers
let!(:secondary) { create(:geo_node) }
......
# frozen_string_literal: true
require 'spec_helper'
describe Geo::DesignRegistryFinder, :geo, :geo_fdw do
RSpec.describe Geo::DesignRegistryFinder, :geo, :geo_fdw do
include ::EE::GeoHelpers
let!(:secondary) { create(:geo_node) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::DesignUnsyncedFinder, :geo, :geo_fdw do
RSpec.describe Geo::DesignUnsyncedFinder, :geo, :geo_fdw do
include EE::GeoHelpers
describe '#execute' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::DesignUpdatedRecentlyFinder, :geo, :geo_fdw do
RSpec.describe Geo::DesignUpdatedRecentlyFinder, :geo, :geo_fdw do
include EE::GeoHelpers
describe '#execute' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::FileRegistryFinder, :geo, :geo_fdw do
RSpec.describe Geo::FileRegistryFinder, :geo, :geo_fdw do
include ::EE::GeoHelpers
context 'with abstract methods' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::JobArtifactRegistryFinder, :geo_fdw do
RSpec.describe Geo::JobArtifactRegistryFinder, :geo_fdw do
include ::EE::GeoHelpers
# Using let() instead of set() because set() does not work properly
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::LfsObjectRegistryFinder, :geo_fdw do
RSpec.describe Geo::LfsObjectRegistryFinder, :geo_fdw do
include ::EE::GeoHelpers
# Using let() instead of set() because set() does not work properly
......
......@@ -2,6 +2,6 @@
require 'spec_helper'
describe Geo::PackageFileRegistryFinder do
RSpec.describe Geo::PackageFileRegistryFinder do
it_behaves_like 'a framework registry finder', :package_file_registry
end
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::ProjectRegistryMismatchFinder, :geo, :geo_fdw do
RSpec.describe Geo::ProjectRegistryMismatchFinder, :geo, :geo_fdw do
describe '#execute' do
let(:node) { create(:geo_node) }
let(:group_1) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::ProjectRegistryPendingVerificationFinder, :geo, :geo_fdw do
RSpec.describe Geo::ProjectRegistryPendingVerificationFinder, :geo, :geo_fdw do
describe '#execute' do
let(:node) { create(:geo_node) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::ProjectRegistryRetryingVerificationFinder, :geo, :geo_fdw do
RSpec.describe Geo::ProjectRegistryRetryingVerificationFinder, :geo, :geo_fdw do
describe '#execute' do
let(:node) { create(:geo_node) }
let(:group_1) { create(:group) }
......
# frozen_string_literal: true
require 'spec_helper'
describe Geo::ProjectRegistryStatusFinder, :geo, :geo_tracking_db do
RSpec.describe Geo::ProjectRegistryStatusFinder, :geo, :geo_tracking_db do
include ::EE::GeoHelpers
let_it_be(:secondary) { create(:geo_node) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::ProjectRegistrySyncFailedFinder, :geo, :geo_fdw do
RSpec.describe Geo::ProjectRegistrySyncFailedFinder, :geo, :geo_fdw do
describe '#execute' do
let(:node) { create(:geo_node) }
let(:group_1) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::ProjectRegistrySyncedFinder, :geo, :geo_fdw do
RSpec.describe Geo::ProjectRegistrySyncedFinder, :geo, :geo_fdw do
describe '#execute' do
let(:node) { create(:geo_node) }
let(:group_1) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::ProjectRegistryVerificationFailedFinder, :geo, :geo_fdw do
RSpec.describe Geo::ProjectRegistryVerificationFailedFinder, :geo, :geo_fdw do
describe '#execute' do
let(:node) { create(:geo_node) }
let(:group_1) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::ProjectRegistryVerifiedFinder, :geo, :geo_fdw do
RSpec.describe Geo::ProjectRegistryVerifiedFinder, :geo, :geo_fdw do
describe '#execute' do
let(:node) { create(:geo_node) }
let(:group_1) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::ProjectUnsyncedFinder, :geo, :geo_fdw do
RSpec.describe Geo::ProjectUnsyncedFinder, :geo, :geo_fdw do
describe '#execute' do
let(:node) { create(:geo_node) }
let(:group_1) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::ProjectUpdatedRecentlyFinder, :geo, :geo_fdw do
RSpec.describe Geo::ProjectUpdatedRecentlyFinder, :geo, :geo_fdw do
describe '#execute' do
let(:node) { create(:geo_node) }
let(:group_1) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Geo::RepositoryVerificationFinder do
RSpec.describe Geo::RepositoryVerificationFinder do
let_it_be(:project) { create(:project) }
describe '#find_failed_repositories' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GeoNodeFinder do
RSpec.describe GeoNodeFinder do
include ::EE::GeoHelpers
let_it_be(:geo_node1) { create(:geo_node) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GroupProjectsFinder do
RSpec.describe GroupProjectsFinder do
include_context 'GroupProjectsFinder context'
subject { finder.execute }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GroupSamlIdentityFinder do
RSpec.describe GroupSamlIdentityFinder do
include Gitlab::Routing
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GroupsWithTemplatesFinder do
RSpec.describe GroupsWithTemplatesFinder do
let_it_be(:group_1, reload: true) { create(:group, name: 'group-1') }
let_it_be(:group_2, reload: true) { create(:group, name: 'group-2') }
let_it_be(:group_3, reload: true) { create(:group, name: 'group-3') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe IssuesFinder do
RSpec.describe IssuesFinder do
describe '#execute' do
include_context 'IssuesFinder context'
include_context 'IssuesFinder#execute context'
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe IterationsFinder do
RSpec.describe IterationsFinder do
let(:now) { Time.now }
let_it_be(:group) { create(:group) }
let_it_be(:project_1) { create(:project, namespace: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe LicenseTemplateFinder do
RSpec.describe LicenseTemplateFinder do
let_it_be(:project) { create(:project) }
let(:params) { {} }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe LicensesFinder do
RSpec.describe LicensesFinder do
let(:license) { create(:license) }
let_it_be(:user) { create(:admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe MergeRequests::ByApprovalsFinder do
RSpec.describe MergeRequests::ByApprovalsFinder do
let_it_be(:first_user) { create(:user) }
let_it_be(:second_user) { create(:user) }
let(:third_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe MergeRequests::ByApproversFinder do
RSpec.describe MergeRequests::ByApproversFinder do
let(:group_user) { create(:user) }
let(:second_group_user) { create(:user) }
let(:group) do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe MergeRequestsComplianceFinder do
RSpec.describe MergeRequestsComplianceFinder do
subject { described_class.new(current_user, search_params) }
let_it_be(:current_user) { create(:admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe MergeRequestsFinder do
RSpec.describe MergeRequestsFinder do
describe '#execute' do
include_context 'MergeRequestsFinder multiple projects with merge requests context'
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe MergeTrainsFinder do
RSpec.describe MergeTrainsFinder do
let_it_be(:project) { create(:project) }
let_it_be(:developer) { create(:user) }
let_it_be(:guest) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe NotesFinder do
RSpec.describe NotesFinder do
let(:group) { create(:group) }
let(:user) { create(:group_member, :owner, group: group, user: create(:user)).user }
let(:epic) { create(:epic, :opened, author: user, group: group) }
......
# frozen_string_literal: true
require 'spec_helper'
describe ::Packages::Conan::PackageFileFinder do
RSpec.describe ::Packages::Conan::PackageFileFinder do
let_it_be(:package) { create(:conan_package) }
let_it_be(:package_file) { package.package_files.first }
let(:package_file_name) { package_file.file_name }
......
# frozen_string_literal: true
require 'spec_helper'
describe ::Packages::Conan::PackageFinder do
RSpec.describe ::Packages::Conan::PackageFinder do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project, :public) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Packages::Go::ModuleFinder do
RSpec.describe Packages::Go::ModuleFinder do
let_it_be(:project) { create :project }
let_it_be(:other_project) { create :project }
let(:finder) { described_class.new project, module_name }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Packages::Go::VersionFinder do
RSpec.describe Packages::Go::VersionFinder do
let_it_be(:user) { create :user }
let_it_be(:project) { create :project_empty_repo, creator: user, path: 'my-go-lib' }
......
# frozen_string_literal: true
require 'spec_helper'
describe Packages::GroupPackagesFinder do
RSpec.describe Packages::GroupPackagesFinder do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
let_it_be(:project) { create(:project, namespace: group) }
......
# frozen_string_literal: true
require 'spec_helper'
describe ::Packages::Maven::PackageFinder do
RSpec.describe ::Packages::Maven::PackageFinder do
let(:user) { create(:user) }
let(:group) { create(:group) }
let(:project) { create(:project, namespace: group) }
......
# frozen_string_literal: true
require 'spec_helper'
describe ::Packages::Npm::PackageFinder do
RSpec.describe ::Packages::Npm::PackageFinder do
let(:package) { create(:npm_package) }
let(:project) { package.project }
let(:package_name) { package.name }
......
# frozen_string_literal: true
require 'spec_helper'
describe Packages::Nuget::PackageFinder do
RSpec.describe Packages::Nuget::PackageFinder do
let_it_be(:package1) { create(:nuget_package) }
let_it_be(:project) { package1.project }
let_it_be(:package2) { create(:nuget_package, name: package1.name, version: '2.0.0', project: project) }
......
# frozen_string_literal: true
require 'spec_helper'
describe Packages::PackageFileFinder do
RSpec.describe Packages::PackageFileFinder do
let_it_be(:package) { create(:maven_package) }
let_it_be(:package_file) { package.package_files.first }
let(:package_file_name) { package_file.file_name }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe ::Packages::PackageFinder do
RSpec.describe ::Packages::PackageFinder do
let_it_be(:project) { create(:project) }
let_it_be(:maven_package) { create(:maven_package, project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe ::Packages::PackagesFinder do
RSpec.describe ::Packages::PackagesFinder do
let_it_be(:project) { create(:project) }
let_it_be(:maven_package) { create(:maven_package, project: project, created_at: 2.days.ago, name: 'maven', version: '2.0.0') }
let_it_be(:conan_package) { create(:conan_package, project: project, created_at: 1.day.ago, name: 'conan', version: '1.0.0') }
......
# frozen_string_literal: true
require 'spec_helper'
describe Packages::TagsFinder do
RSpec.describe Packages::TagsFinder do
let(:package) { create(:npm_package) }
let(:project) { package.project }
let!(:tag1) { create(:packages_tag, package: package) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe ProductivityAnalyticsFinder do
RSpec.describe ProductivityAnalyticsFinder do
subject { described_class.new(current_user, search_params.merge(state: :merged)) }
let(:current_user) { create(:admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe RequirementsManagement::RequirementsFinder do
RSpec.describe RequirementsManagement::RequirementsFinder do
let_it_be(:project) { create(:project) }
let_it_be(:project_user) { create(:user, username: 'projectusername').tap { |u| project.add_developer(u) } }
let_it_be(:other_user) { create(:user, username: 'otheruser123') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe ScimFinder do
RSpec.describe ScimFinder do
let(:group) { create(:group) }
let(:unused_params) { double }
......
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