Commit 032edfa7 authored by Ash McKenzie's avatar Ash McKenzie

Replace rails_helper.rb with spec_helper.rb

rails_helper.rb's only logic was to require
spec_helper.rb.
parent 7ef1af2f
......@@ -264,8 +264,6 @@ RSpec/EnvAssignment:
Exclude:
- 'spec/**/fast_spec_helper.rb'
- 'ee/spec/**/fast_spec_helper.rb'
- 'spec/**/rails_helper.rb'
- 'ee/spec/**/rails_helper.rb'
- 'spec/**/spec_helper.rb'
- 'ee/spec/**/spec_helper.rb'
RSpec/BeSuccessMatcher:
......
......@@ -3,7 +3,7 @@
require 'bundler/setup'
require 'stackprof'
$:.unshift 'spec'
require 'rails_helper'
require 'spec_helper'
filename = ARGV[0].split('/').last
interval = ENV.fetch('INTERVAL', 1000).to_i
......
......@@ -18,7 +18,7 @@ end
Consider the following API spec:
```ruby
require 'rails_helper'
require 'spec_helper'
describe API::Labels do
it 'creates a first label' do
......@@ -69,7 +69,7 @@ is ok, but `create(:label, title: 'label1')` is not.
Following is the fixed API spec:
```ruby
require 'rails_helper'
require 'spec_helper'
describe API::Labels do
it 'creates a first label' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe SentNotificationsController do
let(:user) { create(:user) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe Projects::ApproverGroupsController do
describe '#destroy' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe Projects::ApproversController do
describe '#destroy' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe Projects::PathLocksController do
let(:project) { create(:project, :repository, :public) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Issue Boards add issue modal', :js do
let(:project) { create(:project, :public) }
......
require 'rails_helper'
require 'spec_helper'
describe 'Issue Boards focus mode', :js do
let(:project) { create(:project, :public) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Multiple Issue Boards', :js do
set(:user) { create(:user) }
......
require 'rails_helper'
require 'spec_helper'
describe 'Scoped issue boards', :js do
include FilteredSearchHelpers
......
require 'rails_helper'
require 'spec_helper'
describe 'Issue Boards', :js do
include BoardHelpers
......
require 'rails_helper'
require 'spec_helper'
describe 'GFM autocomplete', :js do
let(:user) { create(:user, name: '💃speciąl someone💃', username: 'someone.special') }
......
require 'rails_helper'
require 'spec_helper'
describe 'Manually create a todo item from epic', :js do
let(:group) { create(:group) }
......
require "rails_helper"
require 'spec_helper'
describe "User tests hooks", :js do
include StubRequests
......
require 'rails_helper'
require 'spec_helper'
describe 'Related issues', :js do
let(:user) { create(:user) }
......
require 'rails_helper'
require 'spec_helper'
describe 'Dropdown weight', :js do
include FilteredSearchHelpers
......
require 'rails_helper'
require 'spec_helper'
describe 'Filter issues weight', :js do
include FilteredSearchHelpers
......
require 'rails_helper'
require 'spec_helper'
describe 'New/edit issue', :js do
include GitlabRoutingHelper
......
require 'rails_helper'
require 'spec_helper'
describe 'Issue Sidebar' do
include MobileHelpers
......
require 'rails_helper'
require 'spec_helper'
describe 'Merge request > Batch comments', :js do
include MergeRequestDiffHelpers
......
require 'rails_helper'
require 'spec_helper'
# TODO: https://gitlab.com/gitlab-org/gitlab-ee/issues/9430
xdescribe 'Merge request > User approves', :js do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Merge request > User approves with password', :js do
let(:user) { create(:user) }
......
require 'rails_helper'
require 'spec_helper'
describe 'Merge request > image review', :js do
include MergeRequestDiffHelpers
......
require 'rails_helper'
require 'spec_helper'
describe 'Merge request > User sees approval widget', :js do
let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Merge request > User sees deployment widget', :js do
describe 'when merge request has associated environments' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Merge request > User sees merge widget', :js do
include ProjectForksHelper
......
require 'rails_helper'
require 'spec_helper'
describe 'Merge request > User selects branches for new MR', :js do
let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Merge request > User sets approval rules', :js do
include ProjectForksHelper
......
require 'rails_helper'
require 'spec_helper'
describe 'Merge request > User sets approvers', :js do
include ProjectForksHelper
......
require 'rails_helper'
require 'spec_helper'
describe 'Merge request > User uses quick actions', :js do
include Spec::Support::Helpers::Features::NotesHelpers
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Merge Requests > User filters by approvers', :js do
include FilteredSearchHelpers
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Two merge requests on a merge train' do
include RepoHelpers
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'User adds a merge request to a merge train', :js do
let(:project) { create(:project, :repository) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'User adds to merge train when pipeline succeeds', :js do
let(:project) { create(:project, :repository) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Profile > Account' do
let(:user) { create(:user) }
......
require 'rails_helper'
require 'spec_helper'
describe 'Geo clone instructions', :geo, :js do
include Devise::Test::IntegrationHelpers
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Kerberos clone instructions', :js do
include MobileHelpers
......
require 'rails_helper'
require 'spec_helper'
describe 'Projects > Settings > Packages', :js do
let(:project) { create(:project) }
......
require 'rails_helper'
require 'spec_helper'
describe 'Projects > Show > Developer views empty project instructions' do
let(:project) { create(:project, :empty_repo) }
......
require 'rails_helper'
require 'spec_helper'
describe 'Geo read-only message', :geo do
include ::EE::GeoHelpers
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe Gitlab::Prometheus::MetricGroup do
describe '.for_project' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
RSpec.describe Gitlab::Favicon, :request_store do
describe '.main' do
......
require 'rails_helper'
require 'spec_helper'
describe Gitlab::SidekiqConfig do
describe '.workers' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
RSpec.describe AuditEvent, type: :model do
describe 'relationships' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe EE::DeploymentPlatform do
describe '#deployment_platform' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe EE::Noteable do
subject(:klazz) { Class.new { include Noteable } }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
RSpec.describe DependencyProxy::Blob, type: :model do
describe 'relationships' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
RSpec.describe DependencyProxy::GroupSetting, type: :model do
describe 'relationships' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
RSpec.describe DependencyProxy::Registry, type: :model do
let(:tag) { '2.3.5-alpine' }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe DesignManagement::Design do
include DesignManagementTestHelpers
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe DesignManagement::DesignVersion do
describe 'relations' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe DesignManagement::Repository do
let(:project) { create(:project) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe DesignManagement::Version do
describe 'relations' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe Clusters::Applications::Prometheus do
describe 'transition to updating' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe List do
let(:board) { create(:board) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
RSpec.describe ResourceLabelEvent, type: :model do
subject { build(:resource_label_event) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe Member, type: :model do
describe '#notification_service' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
RSpec.describe Packages::MavenMetadatum, type: :model do
describe 'relationships' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
RSpec.describe Packages::PackageFile, type: :model do
describe 'relationships' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
RSpec.describe Packages::Package, type: :model do
describe 'relationships' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe ProjectFeatureUsage, type: :model do
describe '.jira_dvcs_integrations_enabled_count' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe ProjectImportState, type: :model do
describe 'Project import job' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe ProjectRepositoryState do
using RSpec::Parameterized::TableSyntax
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe ScopedLabelSet do
set(:kv_label1) { create(:label, title: 'key::label1') }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe Groups::RoadmapController do
let(:user) { create(:user) }
......
require 'rails_helper'
require 'spec_helper'
describe 'Jira referenced paths', type: :request do
using RSpec::Parameterized::TableSyntax
......
require 'rails_helper'
require 'spec_helper'
describe Projects::IssueLinksController do
let(:user) { create :user }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe ::EE::NullNotificationService do
it 'responds to methods implemented by NotificationService' do
......
require 'rails_helper'
require 'spec_helper'
describe MergeRequests::ApprovalService do
describe '#execute' do
......
require 'rails_helper'
require 'spec_helper'
describe MergeRequests::RemoveApprovalService do
describe '#execute' do
......
require 'rails_helper'
require 'spec_helper'
describe 'admin/users/index' do
let(:should_check_namespace_plan) { false }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
RSpec.describe Geo::Batch::ProjectRegistrySchedulerWorker do
include ExclusiveLeaseHelpers
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
RSpec.describe Geo::Batch::ProjectRegistryWorker do
include ::EE::GeoHelpers
......
require 'rails_helper'
require 'spec_helper'
RSpec.describe Geo::MetricsUpdateWorker, :geo do
include ::EE::GeoHelpers
......
require 'rails_helper'
require 'spec_helper'
RSpec.describe Geo::ProjectSyncWorker do
describe '#perform' do
......
require 'rails_helper'
require 'spec_helper'
describe RepositoryUpdateMirrorWorker do
describe '#perform' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe Projects::BlobController do
include ProjectForksHelper
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe SentNotificationsController do
let(:user) { create(:user) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Admin disables Git access protocol', :js do
include StubENV
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Admin disables 2FA for a user' do
it 'successfully', :js do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Admin uses repository checks' do
include StubENV
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Issue Boards add issue modal', :js do
let(:project) { create(:project, :public) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Issue Boards', :js do
include DragTo
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Issue Boards', :js do
include DragTo
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Issue Boards shortcut', :js do
context 'issues are enabled' do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Issue Boards add issue modal filtering', :js do
let(:project) { create(:project, :public) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Multiple Issue Boards', :js do
set(:user) { create(:user) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Issue Boards new issue', :js do
let(:project) { create(:project, :public) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Ensure Boards do not show stale data on browser back', :js do
let(:project) {create(:project, :public)}
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Issue Boards', :js do
include BoardHelpers
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Sub-group project issue boards', :js do
let(:group) { create(:group) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Commit > User uses quick actions', :js do
include Spec::Support::Helpers::Features::NotesHelpers
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Dashboard > Todo target states' do
let(:user) { create(:user) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Group Issue Boards', :js do
include BoardHelpers
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Group Boards' do
let(:group) { create(:group) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Group milestones' do
let(:group) { create(:group) }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'User browse group projects page' do
let(:user) { create :user }
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Cohorts page' do
before do
......
# frozen_string_literal: true
require 'rails_helper'
require 'spec_helper'
describe 'Cohorts page', :js do
before do
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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