Commit 951b1aaf authored by Jarka Košanová's avatar Jarka Košanová

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

RSpec zero monkey patching mode

See merge request gitlab-org/gitlab!33721
parents 2b880c09 bbd93a95
# frozen_string_literal: true # frozen_string_literal: true
require 'spec_helper' 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') } subject { load Rails.root.join('ee', 'db', 'fixtures', 'production', '010_license.rb') }
it 'executes the gitlab:license:load task' do it 'executes the gitlab:license:load task' do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'GlobalSearch', :elastic do RSpec.describe 'GlobalSearch', :elastic do
let(:features) { %i(issues merge_requests repository builds wiki snippets) } let(:features) { %i(issues merge_requests repository builds wiki snippets) }
let(:admin) { create :user, admin: true } let(:admin) { create :user, admin: true }
let(:auditor) {create :user, auditor: true } let(:auditor) {create :user, auditor: true }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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 context 'when fresh master branch is first pushed, followed by another update, then indexed' do
let(:project) { create(:project_empty_repo) } let(:project) { create(:project_empty_repo) }
let(:user) { project.owner } let(:user) { project.owner }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Account recovery regular check callout' do RSpec.describe 'Account recovery regular check callout' do
context 'when signed in' do context 'when signed in' do
let(:user) { create(:user, created_at: 4.months.ago ) } let(:user) { create(:user, created_at: 4.months.ago ) }
let(:message) { "Please ensure your account's recovery settings are up to date." } let(:message) { "Please ensure your account's recovery settings are up to date." }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Admin::AuditLogs', :js do RSpec.describe 'Admin::AuditLogs', :js do
include Select2Helper include Select2Helper
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Admin::CredentialsInventory' do RSpec.describe 'Admin::CredentialsInventory' do
include Spec::Support::Helpers::Features::ResponsiveTableHelpers include Spec::Support::Helpers::Features::ResponsiveTableHelpers
before do before do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Admin Dashboard' do RSpec.describe 'Admin Dashboard' do
describe 'Users statistic' do describe 'Users statistic' do
let_it_be(:users_statistics) { create(:users_statistics) } let_it_be(:users_statistics) { create(:users_statistics) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Admin::Emails', :clean_gitlab_redis_shared_state do RSpec.describe 'Admin::Emails', :clean_gitlab_redis_shared_state do
include ExclusiveLeaseHelpers include ExclusiveLeaseHelpers
before do before do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require "spec_helper" require "spec_helper"
describe "Admin interacts with push rules" do RSpec.describe "Admin interacts with push rules" do
include StubENV include StubENV
let_it_be(:user) { create(:admin) } let_it_be(:user) { create(:admin) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Reset namespace pipeline minutes' do RSpec.describe 'Reset namespace pipeline minutes' do
let(:admin) { create(:admin) } let(:admin) { create(:admin) }
before do before do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require "spec_helper" 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(:group) { create(:group) }
let!(:project) { create(:project, group: group) } let!(:project) { create(:project, group: group) }
let(:admin) { create(:admin) } let(:admin) { create(:admin) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Admin updates EE-only settings' do RSpec.describe 'Admin updates EE-only settings' do
include StubENV include StubENV
before do before do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe "Admin::Users" do RSpec.describe "Admin::Users" do
include Spec::Support::Helpers::Features::ResponsiveTableHelpers include Spec::Support::Helpers::Features::ResponsiveTableHelpers
let!(:user) do let!(:user) do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'admin Geo Nodes', :js, :geo do RSpec.describe 'admin Geo Nodes', :js, :geo do
let!(:geo_node) { create(:geo_node) } let!(:geo_node) { create(:geo_node) }
def expect_fields(node_fields) def expect_fields(node_fields)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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!(:geo_node) { create(:geo_node) }
let!(:synced_registry) { create(:geo_project_registry, :synced, :repository_verified) } let!(:synced_registry) { create(:geo_project_registry, :synced, :repository_verified) }
let!(:sync_pending_registry) { create(:geo_project_registry, :synced, :repository_dirty) } let!(:sync_pending_registry) { create(:geo_project_registry, :synced, :repository_dirty) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'admin Geo Replication Nav', :js, :geo do RSpec.describe 'admin Geo Replication Nav', :js, :geo do
include ::EE::GeoHelpers include ::EE::GeoHelpers
include StubENV include StubENV
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'admin Geo Sidebar', :js, :geo do RSpec.describe 'admin Geo Sidebar', :js, :geo do
include ::EE::GeoHelpers include ::EE::GeoHelpers
include StubENV include StubENV
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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!(:geo_node) { create(:geo_node) }
let!(:synced_registry) { create(:geo_upload_registry, :with_file, :attachment, success: true) } let!(:synced_registry) { create(:geo_upload_registry, :with_file, :attachment, success: true) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Changes GL.com plan for group' do RSpec.describe 'Changes GL.com plan for group' do
include WaitForRequests include WaitForRequests
let!(:silver_plan) { create(:silver_plan) } let!(:silver_plan) { create(:silver_plan) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require "spec_helper" require "spec_helper"
describe "Admin uploads license" do RSpec.describe "Admin uploads license" do
let_it_be(:admin) { create(:admin) } let_it_be(:admin) { create(:admin) }
before do before do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require "spec_helper" require "spec_helper"
describe "Admin views license" do RSpec.describe "Admin views license" do
let_it_be(:admin) { create(:admin) } let_it_be(:admin) { create(:admin) }
before do before do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require "spec_helper" require "spec_helper"
describe "Licenses app", :js do RSpec.describe "Licenses app", :js do
let(:admin) { create(:admin) } let(:admin) { create(:admin) }
let!(:licenses) do let!(:licenses) do
[ [
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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(:admin) { create(:admin) }
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let_it_be(:license_seats_limit) { 10 } let_it_be(:license_seats_limit) { 10 }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Show users over license banner', :js do RSpec.describe 'Show users over license banner', :js do
include StubRequests include StubRequests
let_it_be(:admin) { create(:admin) } let_it_be(:admin) { create(:admin) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'accessing the analytics workspace' do RSpec.describe 'accessing the analytics workspace' do
let(:user) { create(:user) } let(:user) { create(:user) }
before do before do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'CodeReviewAnalytics Filtered Search', :js do RSpec.describe 'CodeReviewAnalytics Filtered Search', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
let(:user) { create(:user) } let(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Group Value Stream Analytics', :js do RSpec.describe 'Group Value Stream Analytics', :js do
include DragTo include DragTo
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'GroupAnalytics' do RSpec.describe 'GroupAnalytics' do
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) } let_it_be(:group) { create(:group) }
let(:path) { group_path(group) } let(:path) { group_path(group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Billing plan pages', :feature do RSpec.describe 'Billing plan pages', :feature do
include StubRequests include StubRequests
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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(:project) { create(:project, :public) }
let(:board) { create(:board, project: project) } let(:board) { create(:board, project: project) }
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'issue boards', :js do RSpec.describe 'issue boards', :js do
include DragTo include DragTo
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Group Boards', :js do RSpec.describe 'Group Boards', :js do
let(:group) { create(:group) } let(:group) { create(:group) }
let!(:board_ux) { create(:board, group: group, name: 'UX') } let!(:board_ux) { create(:board, group: group, name: 'UX') }
let!(:board_dev) { create(:board, group: group, name: 'Dev') } let!(:board_dev) { create(:board, group: group, name: 'Dev') }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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(:user) { create(:user) }
let_it_be(:group) { create(:group, :public) } let_it_be(:group) { create(:group, :public) }
let_it_be(:planning) { create(:group_label, group: group, name: 'Planning') } let_it_be(:planning) { create(:group_label, group: group, name: 'Planning') }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'label issues', :js do RSpec.describe 'label issues', :js do
include BoardHelpers include BoardHelpers
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Issue Boards new issue', :js do RSpec.describe 'Issue Boards new issue', :js do
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
let(:board) { create(:board, project: project) } let(:board) { create(:board, project: project) }
let!(:list) { create(:list, board: board, position: 0) } let!(:list) { create(:list, board: board, position: 0) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Scoped issue boards', :js do RSpec.describe 'Scoped issue boards', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Issue Boards', :js do RSpec.describe 'Issue Boards', :js do
include BoardHelpers include BoardHelpers
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Burndown charts', :js do RSpec.describe 'Burndown charts', :js do
let(:current_user) { create(:user) } let(:current_user) { create(:user) }
let(:milestone) do let(:milestone) do
create(:milestone, project: project, create(:milestone, project: project,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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(:burnup_chart_selector) { '.js-burnup-chart' }
let_it_be(:burndown_chart_selector) { '.js-burndown-chart' } let_it_be(:burndown_chart_selector) { '.js-burndown-chart' }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'CI shared runner settings' do RSpec.describe 'CI shared runner settings' do
include StubENV include StubENV
let(:admin) { create(:admin) } let(:admin) { create(:admin) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'CI shared runner limits' do RSpec.describe 'CI shared runner limits' do
using RSpec::Parameterized::TableSyntax using RSpec::Parameterized::TableSyntax
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Clusterable > Show page' do RSpec.describe 'Clusterable > Show page' do
include KubernetesHelpers include KubernetesHelpers
let(:current_user) { create(:user) } let(:current_user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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 KubernetesHelpers
include PrometheusHelpers include PrometheusHelpers
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Dashboard activity' do RSpec.describe 'Dashboard activity' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:page_path) { activity_dashboard_path } let(:page_path) { activity_dashboard_path }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Showing analytics' do RSpec.describe 'Showing analytics' do
before do before do
sign_in user if user sign_in user if user
end end
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Dashboard groups' do RSpec.describe 'Dashboard groups' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:page_path) { dashboard_groups_path } let(:page_path) { dashboard_groups_path }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Dashboard issues' do RSpec.describe 'Dashboard issues' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:page_path) { issues_dashboard_path } let(:page_path) { issues_dashboard_path }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Dashboard merge requests' do RSpec.describe 'Dashboard merge requests' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:page_path) { merge_requests_dashboard_path } let(:page_path) { merge_requests_dashboard_path }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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 it 'displays information about the last pipeline to an authenticated developer on the project' do
stub_licensed_features(operations_dashboard: true) stub_licensed_features(operations_dashboard: true)
user = create(:user) user = create(:user)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Dashboard projects' do RSpec.describe 'Dashboard projects' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:page_path) { dashboard_projects_path } let(:page_path) { dashboard_projects_path }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Dashboard todos' do RSpec.describe 'Dashboard todos' do
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let(:page_path) { dashboard_todos_path } let(:page_path) { dashboard_todos_path }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Epic quick actions', :js do RSpec.describe 'Epic quick actions', :js do
include Spec::Support::Helpers::Features::NotesHelpers include Spec::Support::Helpers::Features::NotesHelpers
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Thread Comments Epic', :js do RSpec.describe 'Thread Comments Epic', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:epic) { create(:epic) } let(:epic) { create(:epic) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Delete Epic', :js do RSpec.describe 'Delete Epic', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group, :public) } let(:group) { create(:group, :public) }
let(:epic) { create(:epic, group: group) } let(:epic) { create(:epic, group: group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Epic Issues', :js do RSpec.describe 'Epic Issues', :js do
include DragTo include DragTo
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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(:user) { create(:user) }
let(:group) { create(:group, :public) } let(:group) { create(:group, :public) }
let(:label) { create(:group_label, group: group, title: 'bug') } let(:label) { create(:group_label, group: group, title: 'bug') }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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(:user) { create(:user, name: 'Rick Sanchez', username: 'rick.sanchez') }
let_it_be(:group) { create(:group, :public) } let_it_be(:group) { create(:group, :public) }
let_it_be(:public_project) { create(:project, :public, group: group) } let_it_be(:public_project) { create(:project, :public, group: group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'epics list', :js do RSpec.describe 'epics list', :js do
let(:group) { create(:group, :public) } let(:group) { create(:group, :public) }
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'epics list', :js do RSpec.describe 'epics list', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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(:user) { create(:user, name: '💃speciąl someone💃', username: 'someone.special') }
let(:group) { create(:group) } let(:group) { create(:group) }
let(:label) { create(:group_label, group: group, title: 'special+') } let(:label) { create(:group_label, group: group, title: 'special+') }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Issue promotion', :js do RSpec.describe 'Issue promotion', :js do
include Spec::Support::Helpers::Features::NotesHelpers include Spec::Support::Helpers::Features::NotesHelpers
let(:group) { create(:group) } let(:group) { create(:group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'New Epic', :js do RSpec.describe 'New Epic', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group, :public) } let(:group) { create(:group, :public) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Referencing Epics', :js do RSpec.describe 'Referencing Epics', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group, :public) } let(:group) { create(:group, :public) }
let(:epic) { create(:epic, group: group) } let(:epic) { create(:epic, group: group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Epic shortcuts', :js do RSpec.describe 'Epic shortcuts', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group, :public) } let(:group) { create(:group, :public) }
let(:label) { create(:group_label, group: group, title: 'bug') } let(:label) { create(:group_label, group: group, title: 'bug') }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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(:group) { create(:group) }
let(:epic) { create(:epic, group: group) } let(:epic) { create(:epic, group: group) }
let(:user) { create(:user)} let(:user) { create(:user)}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Update Epic', :js do RSpec.describe 'Update Epic', :js do
include DropzoneHelper include DropzoneHelper
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'GEO Nodes', :geo do RSpec.describe 'GEO Nodes', :geo do
include ::EE::GeoHelpers include ::EE::GeoHelpers
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Group active tab' do RSpec.describe 'Group active tab' do
let(:user) { create :user } let(:user) { create :user }
let(:group) { create(:group) } let(:group) { create(:group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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(:group) { create(:group) }
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Groups::ProductivityAnalytics' do RSpec.describe 'Groups::ProductivityAnalytics' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group) } let(:group) { create(:group) }
let(:project) { create(:project, group: group) } let(:project) { create(:project, group: group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Groups > Audit Events', :js do RSpec.describe 'Groups > Audit Events', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:pete) { create(:user, name: 'Pete') } let(:pete) { create(:user, name: 'Pete') }
let(:group) { create(:group) } let(:group) { create(:group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Groups > Billing', :js do RSpec.describe 'Groups > Billing', :js do
include StubRequests include StubRequests
let!(:user) { create(:user) } let!(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Groups > Contribution Analytics', :js do RSpec.describe 'Groups > Contribution Analytics', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group) } let(:group) { create(:group) }
let(:empty_project) { create(:project, namespace: group) } let(:empty_project) { create(:project, namespace: group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Group Dependency Proxy' do RSpec.describe 'Group Dependency Proxy' do
let(:developer) { create(:user) } let(:developer) { create(:user) }
let(:reporter) { create(:user) } let(:reporter) { create(:user) }
let(:group) { create(:group) } let(:group) { create(:group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Group overview', :js, :aggregate_failures do RSpec.describe 'Group overview', :js, :aggregate_failures do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group) } let(:group) { create(:group) }
let(:empty_project) { create(:project, namespace: group) } let(:empty_project) { create(:project, namespace: group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'The group page' do RSpec.describe 'The group page' do
include ExternalAuthorizationServiceHelpers include ExternalAuthorizationServiceHelpers
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'group epic roadmap', :js do RSpec.describe 'group epic roadmap', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
include MobileHelpers include MobileHelpers
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Edit group settings' do RSpec.describe 'Edit group settings' do
include Select2Helper include Select2Helper
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Groups::Security::Credentials' do RSpec.describe 'Groups::Security::Credentials' do
include Spec::Support::Helpers::Features::ResponsiveTableHelpers include Spec::Support::Helpers::Features::ResponsiveTableHelpers
let_it_be(:group_with_managed_accounts) { create(:group_with_managed_accounts, :private) } let_it_be(:group_with_managed_accounts) { create(:group_with_managed_accounts, :private) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require "spec_helper" require "spec_helper"
describe "User adds hook" do RSpec.describe "User adds hook" do
let_it_be(:group) { create(:group) } let_it_be(:group) { create(:group) }
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let_it_be(:url) { "http://example.org" } let_it_be(:url) { "http://example.org" }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'User edits hooks' do RSpec.describe 'User edits hooks' do
let_it_be(:group) { create(:group) } let_it_be(:group) { create(:group) }
let_it_be(:hook) { create(:group_hook, group: group) } let_it_be(:hook) { create(:group_hook, group: group) }
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe "User tests hooks", :js do RSpec.describe "User tests hooks", :js do
include StubRequests include StubRequests
let!(:group) { create(:group) } let!(:group) { create(:group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require "spec_helper" require "spec_helper"
describe "User views hooks" do RSpec.describe "User views hooks" do
let_it_be(:group) { create(:group) } let_it_be(:group) { create(:group) }
let_it_be(:hook) { create(:group_hook, group: group) } let_it_be(:hook) { create(:group_hook, group: group) }
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Group Insights' do RSpec.describe 'Group Insights' do
it_behaves_like 'Insights page' do it_behaves_like 'Insights page' do
let_it_be(:entity) { create(:group) } let_it_be(:entity) { create(:group) }
let(:route) { url_for([entity, :insights]) } let(:route) { url_for([entity, :insights]) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Group iterations' do RSpec.describe 'Group iterations' do
let_it_be(:title_selector) { 'iteration-title' } let_it_be(:title_selector) { 'iteration-title' }
let_it_be(:description_selector) { '#iteration-description' } let_it_be(:description_selector) { '#iteration-description' }
let_it_be(:start_date_selector) { '#iteration-start-date' } let_it_be(:start_date_selector) { '#iteration-start-date' }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Edit group settings', :js do RSpec.describe 'Edit group settings', :js do
include Select2Helper include Select2Helper
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Edit group settings', :js do RSpec.describe 'Edit group settings', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group, path: 'foo') } let(:group) { create(:group, path: 'foo') }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Groups > Members > List members' do RSpec.describe 'Groups > Members > List members' do
let(:user1) { create(:user, name: 'John Doe') } let(:user1) { create(:user, name: 'John Doe') }
let(:user2) { create(:user, name: 'Mary Jane') } let(:user2) { create(:user, name: 'Mary Jane') }
let(:group) { create(:group) } let(:group) { create(:group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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 include WaitForRequests
let(:johndoe) { create(:user, name: 'John Doe') } let(:johndoe) { create(:user, name: 'John Doe') }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Group navbar' do RSpec.describe 'Group navbar' do
include NavbarStructureHelper include NavbarStructureHelper
include WaitForRequests include WaitForRequests
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Group Packages' do RSpec.describe 'Group Packages' do
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) } let_it_be(:group) { create(:group) }
let_it_be(:project) { create(:project, group: group) } let_it_be(:project) { create(:project, group: group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' 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(:user) { create(:user) }
let_it_be(:push_rule) { create(:push_rule_without_project) } let_it_be(:push_rule) { create(:push_rule_without_project) }
let_it_be(:group) { create(:group, push_rule: push_rule) } let_it_be(:group) { create(:group, push_rule: push_rule) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'SAML access enforcement' do RSpec.describe 'SAML access enforcement' do
let(:group) { create(:group, :private, name: 'The Group Name') } let(:group) { create(:group, :private, name: 'The Group Name') }
let(:sub_group) { create(:group, :private, name: 'The Subgroup Name', parent: group) } let(:sub_group) { create(:group, :private, name: 'The Subgroup Name', parent: group) }
let(:project) { create(:project, :private, name: 'The Project Name', namespace: group) } let(:project) { create(:project, :private, name: 'The Project Name', namespace: group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'SAML provider settings' do RSpec.describe 'SAML provider settings' do
include CookieHelper include CookieHelper
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'SCIM Token handling', :js do RSpec.describe 'SCIM Token handling', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group) } let(:group) { create(:group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Compliance Dashboard', :js do RSpec.describe 'Compliance Dashboard', :js do
let_it_be(:current_user) { create(:user) } let_it_be(:current_user) { create(:user) }
let_it_be(:user) { current_user } let_it_be(:user) { current_user }
let_it_be(:group) { create(:group) } let_it_be(:group) { create(:group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Groups > Settings > User configures Insights', :js do RSpec.describe 'Groups > Settings > User configures Insights', :js do
include Select2Helper include Select2Helper
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Group SAML SSO', :js do RSpec.describe 'Group SAML SSO', :js do
include CookieHelper include CookieHelper
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Groups > Usage Quotas' do RSpec.describe 'Groups > Usage Quotas' do
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let(:group) { create(:group) } let(:group) { create(:group) }
let!(:project) { create(:project, namespace: group, shared_runners_enabled: true) } let!(:project) { create(:project, namespace: group, shared_runners_enabled: true) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Related issues', :js do RSpec.describe 'Related issues', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project_empty_repo, :public) } let(:project) { create(:project_empty_repo, :public) }
let(:project_b) { create(:project_empty_repo, :public) } let(:project_b) { create(:project_empty_repo, :public) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Epic in issue sidebar', :js do RSpec.describe 'Epic in issue sidebar', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group, :public) } let(:group) { create(:group, :public) }
let(:epic1) { create(:epic, group: group, title: 'Foo') } let(:epic1) { create(:epic, group: group, title: 'Foo') }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Dropdown epic', :js do RSpec.describe 'Dropdown epic', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
let(:group) { create(:group) } let(:group) { create(:group) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Dropdown weight', :js do RSpec.describe 'Dropdown weight', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
let!(:project) { create(:project) } let!(:project) { create(:project) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Filter issues weight', :js do RSpec.describe 'Filter issues weight', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
let!(:project) { create(:project) } let!(:project) { create(:project) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'New/edit issue', :js do RSpec.describe 'New/edit issue', :js do
include GitlabRoutingHelper include GitlabRoutingHelper
include ActionView::Helpers::JavaScriptHelper include ActionView::Helpers::JavaScriptHelper
include FormHelper include FormHelper
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'GFM autocomplete EE', :js do RSpec.describe 'GFM autocomplete EE', :js do
let(:user) { create(:user, name: '💃speciąl someone💃', username: 'someone.special') } let(:user) { create(:user, name: '💃speciąl someone💃', username: 'someone.special') }
let(:another_user) { create(:user, name: 'another user', username: 'another.user') } let(:another_user) { create(:user, name: 'another user', username: 'another.user') }
let(:project) { create(:project) } let(:project) { create(:project) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Issue Sidebar' do RSpec.describe 'Issue Sidebar' do
include MobileHelpers include MobileHelpers
let(:group) { create(:group, :nested) } let(:group) { create(:group, :nested) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Issue weight', :js do RSpec.describe 'Issue weight', :js do
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
it 'shows weight on issue list row' do it 'shows weight on issue list row' do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Issue page tabs', :js do RSpec.describe 'Issue page tabs', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
let(:issue) { create(:issue, author: user, assignees: [user], project: project) } let(:issue) { create(:issue, author: user, assignees: [user], project: project) }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'spec_helper' require 'spec_helper'
# Regression test for https://gitlab.com/gitlab-org/gitlab/merge_requests/22461 # Regression test for https://gitlab.com/gitlab-org/gitlab/merge_requests/22461
describe 'Resource weight events', :js do RSpec.describe 'Resource weight events', :js do
include Spec::Support::Helpers::Features::NotesHelpers include Spec::Support::Helpers::Features::NotesHelpers
describe 'move issue by quick action' do describe 'move issue by quick action' do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'issue move to another project' do RSpec.describe 'issue move to another project' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:old_project) { create(:project, :repository) } let(:old_project) { create(:project, :repository) }
let(:text) { 'Some issue description' } let(:text) { 'Some issue description' }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'issue resource weight events', :js do RSpec.describe 'issue resource weight events', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
let(:issue) { create(:issue, project: project, author: user) } let(:issue) { create(:issue, project: project, author: user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Service Desk Issue Tracker', :js do RSpec.describe 'Service Desk Issue Tracker', :js do
let(:project) { create(:project, :private, service_desk_enabled: true) } let(:project) { create(:project, :private, service_desk_enabled: true) }
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Issues sub nav EE' do RSpec.describe 'Issues sub nav EE' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project) } let(:project) { create(:project) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Issues > User uses EE quick actions', :js do RSpec.describe 'Issues > User uses EE quick actions', :js do
include Spec::Support::Helpers::Features::NotesHelpers include Spec::Support::Helpers::Features::NotesHelpers
describe 'issue-only commands' do describe 'issue-only commands' do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Subscriptions Content Security Policy' do RSpec.describe 'Subscriptions Content Security Policy' do
let(:installation) { create(:jira_connect_installation) } let(:installation) { create(:jira_connect_installation) }
let(:qsh) { Atlassian::Jwt.create_query_string_hash('https://gitlab.test/subscriptions', 'GET', 'https://gitlab.test') } let(:qsh) { Atlassian::Jwt.create_query_string_hash('https://gitlab.test/subscriptions', 'GET', 'https://gitlab.test') }
let(:jwt) { Atlassian::Jwt.encode({ iss: installation.client_key, qsh: qsh }, installation.shared_secret) } let(:jwt) { Atlassian::Jwt.encode({ iss: installation.client_key, qsh: qsh }, installation.shared_secret) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'JIRA OAuth Provider' do RSpec.describe 'JIRA OAuth Provider' do
describe 'JIRA DVCS OAuth Authorization' do describe 'JIRA DVCS OAuth Authorization' do
let(:application) { create(:oauth_application, redirect_uri: oauth_jira_callback_url, scopes: 'read_user') } let(:application) { create(:oauth_application, redirect_uri: oauth_jira_callback_url, scopes: 'read_user') }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Labels Hierarchy', :js do RSpec.describe 'Labels Hierarchy', :js do
let!(:user) { create(:user) } let!(:user) { create(:user) }
let!(:grandparent) { create(:group) } let!(:grandparent) { create(:group) }
let!(:parent) { create(:group, parent: grandparent) } let!(:parent) { create(:group, parent: grandparent) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'EE-specific GitLab Markdown', :aggregate_failures do RSpec.describe 'EE-specific GitLab Markdown', :aggregate_failures do
include Capybara::Node::Matchers include Capybara::Node::Matchers
include MarkupHelper include MarkupHelper
include MarkdownMatchers include MarkdownMatchers
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Metrics rendering', :js, :kubeclient, :use_clean_rails_memory_store_caching, :sidekiq_inline do RSpec.describe 'Metrics rendering', :js, :kubeclient, :use_clean_rails_memory_store_caching, :sidekiq_inline do
include PrometheusHelpers include PrometheusHelpers
include KubernetesHelpers include KubernetesHelpers
include MetricsDashboardUrlHelpers include MetricsDashboardUrlHelpers
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge Request sidebar' do RSpec.describe 'Merge Request sidebar' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group, :public) } let(:group) { create(:group, :public) }
let(:project) { create(:project, :repository, :public, group: group) } let(:project) { create(:project, :repository, :public, group: group) }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'spec_helper' require 'spec_helper'
# TODO: https://gitlab.com/gitlab-org/gitlab/issues/9430 # TODO: https://gitlab.com/gitlab-org/gitlab/issues/9430
xdescribe 'Merge request > User approves', :js do RSpec.xdescribe 'Merge request > User approves', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, :public, :repository, approvals_before_merge: 1) } let(:project) { create(:project, :public, :repository, approvals_before_merge: 1) }
let(:merge_request) { create(:merge_request, source_project: project) } let(:merge_request) { create(:merge_request, source_project: project) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User approves with password', :js do RSpec.describe 'Merge request > User approves with password', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, :public, :repository, approvals_before_merge: 1, require_password_to_approve: true, merge_requests_author_approval: true) } let(:project) { create(:project, :public, :repository, approvals_before_merge: 1, require_password_to_approve: true, merge_requests_author_approval: true) }
let(:merge_request) { create(:merge_request, source_project: project) } let(:merge_request) { create(:merge_request, source_project: project) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require "spec_helper" require "spec_helper"
describe "User creates a merge request", :js do RSpec.describe "User creates a merge request", :js do
include ProjectForksHelper include ProjectForksHelper
let(:approver) { create(:user) } let(:approver) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'User creates a merge request with blocking MRs', :js do RSpec.describe 'User creates a merge request with blocking MRs', :js do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
let(:user) { project.owner } let(:user) { project.owner }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User creates MR with multiple assignees' do RSpec.describe 'Merge request > User creates MR with multiple assignees' do
include_context 'merge request create context' include_context 'merge request create context'
before do before do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User edits MR with approval rules', :js do RSpec.describe 'Merge request > User edits MR with approval rules', :js do
include Select2Helper include Select2Helper
include_context 'project with approval rules' include_context 'project with approval rules'
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe "User edits merge request with blocking MRs", :js do RSpec.describe "User edits merge request with blocking MRs", :js do
let(:merge_request) { create(:merge_request) } let(:merge_request) { create(:merge_request) }
let(:project) { merge_request.target_project } let(:project) { merge_request.target_project }
let(:user) { merge_request.target_project.owner } let(:user) { merge_request.target_project.owner }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User edits MR with multiple assignees' do RSpec.describe 'Merge request > User edits MR with multiple assignees' do
include_context 'merge request edit context' include_context 'merge request edit context'
before do before do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge requests > User merges immediately', :js do RSpec.describe 'Merge requests > User merges immediately', :js do
let_it_be(:project) { create(:project, :repository) } let_it_be(:project) { create(:project, :repository) }
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User merges with Push Rules', :js do RSpec.describe 'Merge request > User merges with Push Rules', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, :public, :repository, push_rule: push_rule) } let(:project) { create(:project, :public, :repository, push_rule: push_rule) }
let(:merge_request) { create(:merge_request_with_diffs, source_project: project, author: user, title: 'Bug NS-04') } let(:merge_request) { create(:merge_request_with_diffs, source_project: project, author: user, title: 'Bug NS-04') }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User sees approval widget', :js do RSpec.describe 'Merge request > User sees approval widget', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
let(:user) { project.creator } let(:user) { project.creator }
let(:merge_request) { create(:merge_request, source_project: project) } let(:merge_request) { create(:merge_request, source_project: project) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require "spec_helper" require "spec_helper"
describe 'Merge request > User sees closing issues message', :js do RSpec.describe 'Merge request > User sees closing issues message', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
let(:user) { project.creator } let(:user) { project.creator }
let(:issue_1) { create(:issue, project: project)} let(:issue_1) { create(:issue, project: project)}
......
# frozen_string_literal: true # frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User sees deployment widget', :js do RSpec.describe 'Merge request > User sees deployment widget', :js do
describe 'when merge request has associated environments' do describe 'when merge request has associated environments' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User sees merge widget', :js do RSpec.describe 'Merge request > User sees merge widget', :js do
include ProjectForksHelper include ProjectForksHelper
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User selects branches for new MR', :js do RSpec.describe 'Merge request > User selects branches for new MR', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
let(:user) { project.creator } let(:user) { project.creator }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User sets approval rules', :js do RSpec.describe 'Merge request > User sets approval rules', :js do
include ProjectForksHelper include ProjectForksHelper
include_context 'project with approval rules' include_context 'project with approval rules'
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User sets approvers', :js do RSpec.describe 'Merge request > User sets approvers', :js do
include ProjectForksHelper include ProjectForksHelper
include FeatureApprovalHelper include FeatureApprovalHelper
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User uses quick actions', :js do RSpec.describe 'Merge request > User uses quick actions', :js do
include Spec::Support::Helpers::Features::NotesHelpers include Spec::Support::Helpers::Features::NotesHelpers
describe 'merge-request-only commands' do describe 'merge-request-only commands' do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge Request > User views blocked MR', :js do RSpec.describe 'Merge Request > User views blocked MR', :js do
let(:block) { create(:merge_request_block) } let(:block) { create(:merge_request_block) }
let(:blocking_mr) { block.blocking_merge_request } let(:blocking_mr) { block.blocking_merge_request }
let(:blocked_mr) { block.blocked_merge_request } let(:blocked_mr) { block.blocked_merge_request }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Merge Requests > User filters', :js do RSpec.describe 'Merge Requests > User filters', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'User views all merge requests' do RSpec.describe 'User views all merge requests' do
let!(:merge_request) { create(:merge_request, source_project: project, target_project: project) } let!(:merge_request) { create(:merge_request, source_project: project, target_project: project) }
let(:project) { create(:project, :public, approvals_before_merge: 1) } let(:project) { create(:project, :public, approvals_before_merge: 1) }
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Two merge requests on a merge train' do RSpec.describe 'Two merge requests on a merge train' do
include RepoHelpers include RepoHelpers
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'User adds a merge request to a merge train', :js do RSpec.describe 'User adds a merge request to a merge train', :js do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'User adds to merge train when pipeline succeeds', :js do RSpec.describe 'User adds to merge train when pipeline succeeds', :js do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'User Onboarding' do RSpec.describe 'User Onboarding' do
include MobileHelpers include MobileHelpers
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Operations dropdown navbar EE' do RSpec.describe 'Operations dropdown navbar EE' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project) } let(:project) { create(:project) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Profile > Account' do RSpec.describe 'Profile > Account' do
let(:user) { create(:user) } let(:user) { create(:user) }
before do before do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Profile > Usage Quota' do RSpec.describe 'Profile > Usage Quota' do
using RSpec::Parameterized::TableSyntax using RSpec::Parameterized::TableSyntax
let_it_be(:user, reload: true) { create(:user) } let_it_be(:user, reload: true) { create(:user) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
describe 'Project active tab' do RSpec.describe 'Project active tab' do
let(:user) { create :user } let(:user) { create :user }
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
......
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