Commit bbd93a95 authored by Arturo Herrero's avatar Arturo Herrero

RSpec zero monkey patching mode

The plan for RSpec 4.0 is to disable monkey patching:
https://rspec.info/blog/2013/07/the-plan-for-rspec-3/#zero-monkey-patching-mode

This commit stops using RSpec monkey patching:
https://relishapp.com/rspec/rspec-core/docs/configuration/zero-monkey-patching-mode
parent 9ed204a2
# frozen_string_literal: true
require 'spec_helper'
describe 'Automated License Installation' do
RSpec.describe 'Automated License Installation' do
subject { load Rails.root.join('ee', 'db', 'fixtures', 'production', '010_license.rb') }
it 'executes the gitlab:license:load task' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'GlobalSearch', :elastic do
RSpec.describe 'GlobalSearch', :elastic do
let(:features) { %i(issues merge_requests repository builds wiki snippets) }
let(:admin) { create :user, admin: true }
let(:auditor) {create :user, auditor: true }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Repository index', :elastic do
RSpec.describe 'Repository index', :elastic do
context 'when fresh master branch is first pushed, followed by another update, then indexed' do
let(:project) { create(:project_empty_repo) }
let(:user) { project.owner }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Account recovery regular check callout' do
RSpec.describe 'Account recovery regular check callout' do
context 'when signed in' do
let(:user) { create(:user, created_at: 4.months.ago ) }
let(:message) { "Please ensure your account's recovery settings are up to date." }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Admin::AuditLogs', :js do
RSpec.describe 'Admin::AuditLogs', :js do
include Select2Helper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Admin::CredentialsInventory' do
RSpec.describe 'Admin::CredentialsInventory' do
include Spec::Support::Helpers::Features::ResponsiveTableHelpers
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Admin Dashboard' do
RSpec.describe 'Admin Dashboard' do
describe 'Users statistic' do
let_it_be(:users_statistics) { create(:users_statistics) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Admin::Emails', :clean_gitlab_redis_shared_state do
RSpec.describe 'Admin::Emails', :clean_gitlab_redis_shared_state do
include ExclusiveLeaseHelpers
before do
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "Admin interacts with push rules" do
RSpec.describe "Admin interacts with push rules" do
include StubENV
let_it_be(:user) { create(:admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Reset namespace pipeline minutes' do
RSpec.describe 'Reset namespace pipeline minutes' do
let(:admin) { create(:admin) }
before do
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "Admin sends notification", :js, :sidekiq_might_not_need_inline do
RSpec.describe "Admin sends notification", :js, :sidekiq_might_not_need_inline do
let(:group) { create(:group) }
let!(:project) { create(:project, group: group) }
let(:admin) { create(:admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Admin updates EE-only settings' do
RSpec.describe 'Admin updates EE-only settings' do
include StubENV
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe "Admin::Users" do
RSpec.describe "Admin::Users" do
include Spec::Support::Helpers::Features::ResponsiveTableHelpers
let!(:user) do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'admin Geo Nodes', :js, :geo do
RSpec.describe 'admin Geo Nodes', :js, :geo do
let!(:geo_node) { create(:geo_node) }
def expect_fields(node_fields)
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'admin Geo Projects', :js, :geo do
RSpec.describe 'admin Geo Projects', :js, :geo do
let!(:geo_node) { create(:geo_node) }
let!(:synced_registry) { create(:geo_project_registry, :synced, :repository_verified) }
let!(:sync_pending_registry) { create(:geo_project_registry, :synced, :repository_dirty) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'admin Geo Replication Nav', :js, :geo do
RSpec.describe 'admin Geo Replication Nav', :js, :geo do
include ::EE::GeoHelpers
include StubENV
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'admin Geo Sidebar', :js, :geo do
RSpec.describe 'admin Geo Sidebar', :js, :geo do
include ::EE::GeoHelpers
include StubENV
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'admin Geo Uploads', :js, :geo do
RSpec.describe 'admin Geo Uploads', :js, :geo do
let!(:geo_node) { create(:geo_node) }
let!(:synced_registry) { create(:geo_upload_registry, :with_file, :attachment, success: true) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Changes GL.com plan for group' do
RSpec.describe 'Changes GL.com plan for group' do
include WaitForRequests
let!(:silver_plan) { create(:silver_plan) }
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "Admin uploads license" do
RSpec.describe "Admin uploads license" do
let_it_be(:admin) { create(:admin) }
before do
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "Admin views license" do
RSpec.describe "Admin views license" do
let_it_be(:admin) { create(:admin) }
before do
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "Licenses app", :js do
RSpec.describe "Licenses app", :js do
let(:admin) { create(:admin) }
let!(:licenses) do
[
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Display approaching user count limit banner', :js do
RSpec.describe 'Display approaching user count limit banner', :js do
let_it_be(:admin) { create(:admin) }
let_it_be(:user) { create(:user) }
let_it_be(:license_seats_limit) { 10 }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Show users over license banner', :js do
RSpec.describe 'Show users over license banner', :js do
include StubRequests
let_it_be(:admin) { create(:admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'accessing the analytics workspace' do
RSpec.describe 'accessing the analytics workspace' do
let(:user) { create(:user) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'CodeReviewAnalytics Filtered Search', :js do
RSpec.describe 'CodeReviewAnalytics Filtered Search', :js do
include FilteredSearchHelpers
let(:user) { create(:user) }
......
# frozen_string_literal: true
require 'spec_helper'
describe 'Group Value Stream Analytics', :js do
RSpec.describe 'Group Value Stream Analytics', :js do
include DragTo
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'GroupAnalytics' do
RSpec.describe 'GroupAnalytics' do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
let(:path) { group_path(group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Billing plan pages', :feature do
RSpec.describe 'Billing plan pages', :feature do
include StubRequests
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Issue Boards add issue modal', :js do
RSpec.describe 'Issue Boards add issue modal', :js do
let(:project) { create(:project, :public) }
let(:board) { create(:board, project: project) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'issue boards', :js do
RSpec.describe 'issue boards', :js do
include DragTo
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group Boards', :js do
RSpec.describe 'Group Boards', :js do
let(:group) { create(:group) }
let!(:board_ux) { create(:board, group: group, name: 'UX') }
let!(:board_dev) { create(:board, group: group, name: 'Dev') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Multiple Issue Boards', :js do
RSpec.describe 'Multiple Issue Boards', :js do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group, :public) }
let_it_be(:planning) { create(:group_label, group: group, name: 'Planning') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'label issues', :js do
RSpec.describe 'label issues', :js do
include BoardHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Issue Boards new issue', :js do
RSpec.describe 'Issue Boards new issue', :js do
let(:project) { create(:project, :public) }
let(:board) { create(:board, project: project) }
let!(:list) { create(:list, board: board, position: 0) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Scoped issue boards', :js do
RSpec.describe 'Scoped issue boards', :js do
include FilteredSearchHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Issue Boards', :js do
RSpec.describe 'Issue Boards', :js do
include BoardHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Burndown charts', :js do
RSpec.describe 'Burndown charts', :js do
let(:current_user) { create(:user) }
let(:milestone) do
create(:milestone, project: project,
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Burnup charts', :js do
RSpec.describe 'Burnup charts', :js do
let_it_be(:burnup_chart_selector) { '.js-burnup-chart' }
let_it_be(:burndown_chart_selector) { '.js-burndown-chart' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'CI shared runner settings' do
RSpec.describe 'CI shared runner settings' do
include StubENV
let(:admin) { create(:admin) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'CI shared runner limits' do
RSpec.describe 'CI shared runner limits' do
using RSpec::Parameterized::TableSyntax
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Clusterable > Show page' do
RSpec.describe 'Clusterable > Show page' do
include KubernetesHelpers
let(:current_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Cluster Health board', :js, :kubeclient, :use_clean_rails_memory_store_caching, :sidekiq_inline do
RSpec.describe 'Cluster Health board', :js, :kubeclient, :use_clean_rails_memory_store_caching, :sidekiq_inline do
include KubernetesHelpers
include PrometheusHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Dashboard activity' do
RSpec.describe 'Dashboard activity' do
let(:user) { create(:user) }
let(:page_path) { activity_dashboard_path }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Showing analytics' do
RSpec.describe 'Showing analytics' do
before do
sign_in user if user
end
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Dashboard groups' do
RSpec.describe 'Dashboard groups' do
let(:user) { create(:user) }
let(:page_path) { dashboard_groups_path }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Dashboard issues' do
RSpec.describe 'Dashboard issues' do
let(:user) { create(:user) }
let(:page_path) { issues_dashboard_path }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Dashboard merge requests' do
RSpec.describe 'Dashboard merge requests' do
let(:user) { create(:user) }
let(:page_path) { merge_requests_dashboard_path }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Dashboard operations', :js do
RSpec.describe 'Dashboard operations', :js do
it 'displays information about the last pipeline to an authenticated developer on the project' do
stub_licensed_features(operations_dashboard: true)
user = create(:user)
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Dashboard projects' do
RSpec.describe 'Dashboard projects' do
let(:user) { create(:user) }
let(:page_path) { dashboard_projects_path }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Dashboard todos' do
RSpec.describe 'Dashboard todos' do
let_it_be(:user) { create(:user) }
let(:page_path) { dashboard_todos_path }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Epic quick actions', :js do
RSpec.describe 'Epic quick actions', :js do
include Spec::Support::Helpers::Features::NotesHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Thread Comments Epic', :js do
RSpec.describe 'Thread Comments Epic', :js do
let(:user) { create(:user) }
let(:epic) { create(:epic) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Delete Epic', :js do
RSpec.describe 'Delete Epic', :js do
let(:user) { create(:user) }
let(:group) { create(:group, :public) }
let(:epic) { create(:epic, group: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Epic Issues', :js do
RSpec.describe 'Epic Issues', :js do
include DragTo
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Assign labels to an epic', :js do
RSpec.describe 'Assign labels to an epic', :js do
let(:user) { create(:user) }
let(:group) { create(:group, :public) }
let(:label) { create(:group_label, group: group, title: 'bug') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Epic show', :js do
RSpec.describe 'Epic show', :js do
let_it_be(:user) { create(:user, name: 'Rick Sanchez', username: 'rick.sanchez') }
let_it_be(:group) { create(:group, :public) }
let_it_be(:public_project) { create(:project, :public, group: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'epics list', :js do
RSpec.describe 'epics list', :js do
let(:group) { create(:group, :public) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'epics list', :js do
RSpec.describe 'epics list', :js do
include FilteredSearchHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'GFM autocomplete', :js do
RSpec.describe 'GFM autocomplete', :js do
let(:user) { create(:user, name: '💃speciąl someone💃', username: 'someone.special') }
let(:group) { create(:group) }
let(:label) { create(:group_label, group: group, title: 'special+') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Issue promotion', :js do
RSpec.describe 'Issue promotion', :js do
include Spec::Support::Helpers::Features::NotesHelpers
let(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'New Epic', :js do
RSpec.describe 'New Epic', :js do
let(:user) { create(:user) }
let(:group) { create(:group, :public) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Referencing Epics', :js do
RSpec.describe 'Referencing Epics', :js do
let(:user) { create(:user) }
let(:group) { create(:group, :public) }
let(:epic) { create(:epic, group: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Epic shortcuts', :js do
RSpec.describe 'Epic shortcuts', :js do
let(:user) { create(:user) }
let(:group) { create(:group, :public) }
let(:label) { create(:group_label, group: group, title: 'bug') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Manually create a todo item from epic', :js do
RSpec.describe 'Manually create a todo item from epic', :js do
let(:group) { create(:group) }
let(:epic) { create(:epic, group: group) }
let(:user) { create(:user)}
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Update Epic', :js do
RSpec.describe 'Update Epic', :js do
include DropzoneHelper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'GEO Nodes', :geo do
RSpec.describe 'GEO Nodes', :geo do
include ::EE::GeoHelpers
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group active tab' do
RSpec.describe 'Group active tab' do
let(:user) { create :user }
let(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group value stream analytics' do
RSpec.describe 'Group value stream analytics' do
let_it_be(:group) { create(:group) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Groups::ProductivityAnalytics' do
RSpec.describe 'Groups::ProductivityAnalytics' do
let(:user) { create(:user) }
let(:group) { create(:group) }
let(:project) { create(:project, group: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Groups > Audit Events', :js do
RSpec.describe 'Groups > Audit Events', :js do
let(:user) { create(:user) }
let(:pete) { create(:user, name: 'Pete') }
let(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Groups > Billing', :js do
RSpec.describe 'Groups > Billing', :js do
include StubRequests
let!(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Groups > Contribution Analytics', :js do
RSpec.describe 'Groups > Contribution Analytics', :js do
let(:user) { create(:user) }
let(:group) { create(:group) }
let(:empty_project) { create(:project, namespace: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group Dependency Proxy' do
RSpec.describe 'Group Dependency Proxy' do
let(:developer) { create(:user) }
let(:reporter) { create(:user) }
let(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group overview', :js, :aggregate_failures do
RSpec.describe 'Group overview', :js, :aggregate_failures do
let(:user) { create(:user) }
let(:group) { create(:group) }
let(:empty_project) { create(:project, namespace: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'The group page' do
RSpec.describe 'The group page' do
include ExternalAuthorizationServiceHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'group epic roadmap', :js do
RSpec.describe 'group epic roadmap', :js do
include FilteredSearchHelpers
include MobileHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Edit group settings' do
RSpec.describe 'Edit group settings' do
include Select2Helper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Groups::Security::Credentials' do
RSpec.describe 'Groups::Security::Credentials' do
include Spec::Support::Helpers::Features::ResponsiveTableHelpers
let_it_be(:group_with_managed_accounts) { create(:group_with_managed_accounts, :private) }
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "User adds hook" do
RSpec.describe "User adds hook" do
let_it_be(:group) { create(:group) }
let_it_be(:user) { create(:user) }
let_it_be(:url) { "http://example.org" }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User edits hooks' do
RSpec.describe 'User edits hooks' do
let_it_be(:group) { create(:group) }
let_it_be(:hook) { create(:group_hook, group: group) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe "User tests hooks", :js do
RSpec.describe "User tests hooks", :js do
include StubRequests
let!(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "User views hooks" do
RSpec.describe "User views hooks" do
let_it_be(:group) { create(:group) }
let_it_be(:hook) { create(:group_hook, group: group) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group Insights' do
RSpec.describe 'Group Insights' do
it_behaves_like 'Insights page' do
let_it_be(:entity) { create(:group) }
let(:route) { url_for([entity, :insights]) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group iterations' do
RSpec.describe 'Group iterations' do
let_it_be(:title_selector) { 'iteration-title' }
let_it_be(:description_selector) { '#iteration-description' }
let_it_be(:start_date_selector) { '#iteration-start-date' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Edit group settings', :js do
RSpec.describe 'Edit group settings', :js do
include Select2Helper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Edit group settings', :js do
RSpec.describe 'Edit group settings', :js do
let(:user) { create(:user) }
let(:group) { create(:group, path: 'foo') }
......
# frozen_string_literal: true
require 'spec_helper'
describe 'Groups > Members > List members' do
RSpec.describe 'Groups > Members > List members' do
let(:user1) { create(:user, name: 'John Doe') }
let(:user2) { create(:user, name: 'Mary Jane') }
let(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Groups > Members > Maintainer/Owner can override LDAP access levels' do
RSpec.describe 'Groups > Members > Maintainer/Owner can override LDAP access levels' do
include WaitForRequests
let(:johndoe) { create(:user, name: 'John Doe') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group navbar' do
RSpec.describe 'Group navbar' do
include NavbarStructureHelper
include WaitForRequests
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group Packages' do
RSpec.describe 'Group Packages' do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
let_it_be(:project) { create(:project, group: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Groups > Push Rules', :js do
RSpec.describe 'Groups > Push Rules', :js do
let_it_be(:user) { create(:user) }
let_it_be(:push_rule) { create(:push_rule_without_project) }
let_it_be(:group) { create(:group, push_rule: push_rule) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'SAML access enforcement' do
RSpec.describe 'SAML access enforcement' do
let(:group) { create(:group, :private, name: 'The Group Name') }
let(:sub_group) { create(:group, :private, name: 'The Subgroup Name', parent: group) }
let(:project) { create(:project, :private, name: 'The Project Name', namespace: group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'SAML provider settings' do
RSpec.describe 'SAML provider settings' do
include CookieHelper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'SCIM Token handling', :js do
RSpec.describe 'SCIM Token handling', :js do
let(:user) { create(:user) }
let(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Compliance Dashboard', :js do
RSpec.describe 'Compliance Dashboard', :js do
let_it_be(:current_user) { create(:user) }
let_it_be(:user) { current_user }
let_it_be(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Groups > Settings > User configures Insights', :js do
RSpec.describe 'Groups > Settings > User configures Insights', :js do
include Select2Helper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Group SAML SSO', :js do
RSpec.describe 'Group SAML SSO', :js do
include CookieHelper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Groups > Usage Quotas' do
RSpec.describe 'Groups > Usage Quotas' do
let_it_be(:user) { create(:user) }
let(:group) { create(:group) }
let!(:project) { create(:project, namespace: group, shared_runners_enabled: true) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Related issues', :js do
RSpec.describe 'Related issues', :js do
let(:user) { create(:user) }
let(:project) { create(:project_empty_repo, :public) }
let(:project_b) { create(:project_empty_repo, :public) }
......
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