Commit 04d6bbff authored by Lin Jen-Shin's avatar Lin Jen-Shin

Re-enable RSpec/FilePath cops for EE spec files

Since after we moved them into the standalone directory,
we could again follow the rule. Also, move a file which
was misplaced.
parent 3d14c212
require 'spec_helper' require 'spec_helper'
describe Admin::ApplicationSettingsController do # rubocop:disable RSpec/FilePath describe Admin::ApplicationSettingsController do
include StubENV include StubENV
let(:admin) { create(:admin) } let(:admin) { create(:admin) }
......
require('spec_helper') require 'spec_helper'
describe ProjectsController do # rubocop:disable RSpec/FilePath describe ProjectsController do
let(:project) { create(:project) } let(:project) { create(:project) }
let(:user) { create(:user) } let(:user) { create(:user) }
......
require 'spec_helper' require 'spec_helper'
describe Projects::BoardsController do # rubocop:disable RSpec/FilePath describe Projects::BoardsController do
let(:project) { create(:project) } let(:project) { create(:project) }
let(:user) { create(:user) } let(:user) { create(:user) }
......
require 'spec_helper' require 'spec_helper'
describe API::Internal do # rubocop:disable RSpec/FilePath describe API::Internal do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
let(:secret_token) { Gitlab::Shell.secret_token } let(:secret_token) { Gitlab::Shell.secret_token }
......
require 'spec_helper' require 'spec_helper'
describe API::Issues, :mailer do # rubocop:disable RSpec/FilePath describe API::Issues, :mailer do
set(:user) { create(:user) } set(:user) { create(:user) }
set(:project) do set(:project) do
create(:project, :public, creator_id: user.id, namespace: user.namespace) create(:project, :public, creator_id: user.id, namespace: user.namespace)
......
require 'spec_helper' require 'spec_helper'
describe API::Settings, 'EE Settings' do # rubocop:disable RSpec/FilePath describe API::Settings, 'EE Settings' do
include StubENV include StubENV
let(:user) { create(:user) } let(:user) { create(:user) }
......
require 'spec_helper.rb' require 'spec_helper'
describe Issues::BuildService do # rubocop:disable RSpec/FilePath describe Issues::BuildService do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
let(:user) { create(:user) } let(:user) { create(:user) }
......
require 'spec_helper' require 'spec_helper'
describe MergeRequests::BuildService do # rubocop:disable RSpec/FilePath describe MergeRequests::BuildService do
let(:source_project) { project } let(:source_project) { project }
let(:target_project) { project } let(:target_project) { project }
let(:user) { create(:user) } let(:user) { create(:user) }
......
# rubocop:disable RSpec/FilePath
require 'spec_helper' require 'spec_helper'
describe Projects::DestroyService do describe Projects::DestroyService do
......
# rubocop:disable RSpec/FilePath
require 'spec_helper' require 'spec_helper'
describe Projects::TransferService do describe Projects::TransferService do
......
require 'spec_helper' require 'spec_helper'
describe QuickActions::InterpretService do # rubocop:disable RSpec/FilePath describe QuickActions::InterpretService do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:developer) { create(:user) } let(:developer) { create(:user) }
let(:developer2) { create(:user) } let(:developer2) { create(:user) }
......
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