Skip to content
Snippets Groups Projects
Unverified Commit 19ff9d98 authored by Ash McKenzie's avatar Ash McKenzie
Browse files

Replace rails_helper.rb with spec_helper.rb

rails_helper.rb's only logic was to require
spec_helper.rb.
parent 42484f55
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 22 deletions
Loading
Loading
@@ -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:
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe Projects::BlobController do
include ProjectForksHelper
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe SentNotificationsController do
let(:user) { create(:user) }
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Admin disables Git access protocol', :js do
include StubENV
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Admin disables 2FA for a user' do
it 'successfully', :js do
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Admin uses repository checks' do
include StubENV
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Issue Boards add issue modal', :js do
let(:project) { create(:project, :public) }
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Issue Boards', :js do
include DragTo
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Issue Boards', :js do
include DragTo
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Issue Boards shortcut', :js do
context 'issues are enabled' do
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Issue Boards add issue modal filtering', :js do
let(:project) { create(:project, :public) }
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Multiple Issue Boards', :js do
set(:user) { create(:user) }
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Issue Boards new issue', :js do
let(:project) { create(:project, :public) }
Loading
Loading
# 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)}
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Issue Boards', :js do
include BoardHelpers
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Sub-group project issue boards', :js do
let(:group) { create(:group) }
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Commit > User uses quick actions', :js do
include Spec::Support::Helpers::Features::NotesHelpers
Loading
Loading
# frozen_string_literal: true
 
require 'rails_helper'
require 'spec_helper'
 
describe 'Dashboard > Todo target states' do
let(:user) { create(:user) }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment