Commit 1068ec2e authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch '66741-remove-spec-rails_helper-rb' into 'master'

Remove spec/rails_helper.rb

Closes #66741

See merge request gitlab-org/gitlab-ce!32380
parents 1cb0fa18 19ff9d98
...@@ -264,8 +264,6 @@ RSpec/EnvAssignment: ...@@ -264,8 +264,6 @@ RSpec/EnvAssignment:
Exclude: Exclude:
- 'spec/**/fast_spec_helper.rb' - 'spec/**/fast_spec_helper.rb'
- 'ee/spec/**/fast_spec_helper.rb' - 'ee/spec/**/fast_spec_helper.rb'
- 'spec/**/rails_helper.rb'
- 'ee/spec/**/rails_helper.rb'
- 'spec/**/spec_helper.rb' - 'spec/**/spec_helper.rb'
- 'ee/spec/**/spec_helper.rb' - 'ee/spec/**/spec_helper.rb'
RSpec/BeSuccessMatcher: RSpec/BeSuccessMatcher:
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'bundler/setup' require 'bundler/setup'
require 'stackprof' require 'stackprof'
$:.unshift 'spec' $:.unshift 'spec'
require 'rails_helper' require 'spec_helper'
filename = ARGV[0].split('/').last filename = ARGV[0].split('/').last
interval = ENV.fetch('INTERVAL', 1000).to_i interval = ENV.fetch('INTERVAL', 1000).to_i
......
...@@ -18,7 +18,7 @@ end ...@@ -18,7 +18,7 @@ end
Consider the following API spec: Consider the following API spec:
```ruby ```ruby
require 'rails_helper' require 'spec_helper'
describe API::Labels do describe API::Labels do
it 'creates a first label' do it 'creates a first label' do
...@@ -69,7 +69,7 @@ is ok, but `create(:label, title: 'label1')` is not. ...@@ -69,7 +69,7 @@ is ok, but `create(:label, title: 'label1')` is not.
Following is the fixed API spec: Following is the fixed API spec:
```ruby ```ruby
require 'rails_helper' require 'spec_helper'
describe API::Labels do describe API::Labels do
it 'creates a first label' do it 'creates a first label' do
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe Projects::BlobController do describe Projects::BlobController do
include ProjectForksHelper include ProjectForksHelper
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe SentNotificationsController do describe SentNotificationsController do
let(:user) { create(:user) } let(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Admin disables Git access protocol', :js do describe 'Admin disables Git access protocol', :js do
include StubENV include StubENV
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Admin disables 2FA for a user' do describe 'Admin disables 2FA for a user' do
it 'successfully', :js do it 'successfully', :js do
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Admin uses repository checks' do describe 'Admin uses repository checks' do
include StubENV include StubENV
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issue Boards add issue modal', :js do describe 'Issue Boards add issue modal', :js do
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issue Boards', :js do describe 'Issue Boards', :js do
include DragTo include DragTo
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issue Boards', :js do describe 'Issue Boards', :js do
include DragTo include DragTo
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issue Boards shortcut', :js do describe 'Issue Boards shortcut', :js do
context 'issues are enabled' do context 'issues are enabled' do
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issue Boards add issue modal filtering', :js do describe 'Issue Boards add issue modal filtering', :js do
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Multiple Issue Boards', :js do describe 'Multiple Issue Boards', :js do
set(:user) { create(:user) } set(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issue Boards new issue', :js do describe 'Issue Boards new issue', :js do
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Ensure Boards do not show stale data on browser back', :js do describe 'Ensure Boards do not show stale data on browser back', :js do
let(:project) {create(:project, :public)} let(:project) {create(:project, :public)}
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issue Boards', :js do describe 'Issue Boards', :js do
include BoardHelpers include BoardHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Sub-group project issue boards', :js do describe 'Sub-group project issue boards', :js do
let(:group) { create(:group) } let(:group) { create(:group) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Commit > User uses quick actions', :js do describe 'Commit > User uses quick actions', :js do
include Spec::Support::Helpers::Features::NotesHelpers include Spec::Support::Helpers::Features::NotesHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Dashboard > Todo target states' do describe 'Dashboard > Todo target states' do
let(:user) { create(:user) } let(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Group Issue Boards', :js do describe 'Group Issue Boards', :js do
include BoardHelpers include BoardHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Group Boards' do describe 'Group Boards' do
let(:group) { create(:group) } let(:group) { create(:group) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Group milestones' do describe 'Group milestones' do
let(:group) { create(:group) } let(:group) { create(:group) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'User browse group projects page' do describe 'User browse group projects page' do
let(:user) { create :user } let(:user) { create :user }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Cohorts page' do describe 'Cohorts page' do
before do before do
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Cohorts page', :js do describe 'Cohorts page', :js do
before do before do
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'issuable list' do describe 'issuable list' do
let(:project) { create(:project) } let(:project) { create(:project) }
......
# frozen_string_literal: true # frozen_string_literal: true
require "rails_helper" require 'spec_helper'
describe "Internal references", :js do describe "Internal references", :js do
include Spec::Support::Helpers::Features::NotesHelpers include Spec::Support::Helpers::Features::NotesHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require "rails_helper" require 'spec_helper'
describe "Jira", :js do describe "Jira", :js do
let(:user) { create(:user) } let(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issue Sidebar on Mobile' do describe 'Issue Sidebar on Mobile' do
include MobileHelpers include MobileHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issues > Labels bulk assignment' do describe 'Issues > Labels bulk assignment' do
let(:user) { create(:user) } let(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Resolving all open threads in a merge request from an issue', :js do describe 'Resolving all open threads in a merge request from an issue', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Resolve an open thread in a merge request by creating an issue', :js do describe 'Resolve an open thread in a merge request by creating an issue', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Dropdown assignee', :js do describe 'Dropdown assignee', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Dropdown author', :js do describe 'Dropdown author', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Dropdown emoji', :js do describe 'Dropdown emoji', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Dropdown hint', :js do describe 'Dropdown hint', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Dropdown milestone', :js do describe 'Dropdown milestone', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Search bar', :js do describe 'Search bar', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Visual tokens', :js do describe 'Visual tokens', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'New/edit issue', :js do describe 'New/edit issue', :js do
include ActionView::Helpers::JavaScriptHelper include ActionView::Helpers::JavaScriptHelper
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'GFM autocomplete', :js do describe 'GFM autocomplete', :js do
let(:issue_xss_title) { 'This will execute alert<img src=x onerror=alert(2)&lt;img src=x onerror=alert(1)&gt;' } let(:issue_xss_title) { 'This will execute alert<img src=x onerror=alert(2)&lt;img src=x onerror=alert(1)&gt;' }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Group label on issue' do describe 'Group label on issue' do
it 'renders link to the project issues page' do it 'renders link to the project issues page' do
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issue Detail', :js do describe 'Issue Detail', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issue Sidebar' do describe 'Issue Sidebar' do
include MobileHelpers include MobileHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issues shortcut', :js do describe 'Issues shortcut', :js do
context 'New Issue shortcut' do context 'New Issue shortcut' do
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Issue markdown toolbar', :js do describe 'Issue markdown toolbar', :js do
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'issue move to another project' do describe 'issue move to another project' do
let(:user) { create(:user) } let(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'List issue resource label events', :js do describe 'List issue resource label events', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'New issue', :js do describe 'New issue', :js do
include StubENV include StubENV
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Manually create a todo item from issue', :js do describe 'Manually create a todo item from issue', :js do
let!(:project) { create(:project) } let!(:project) { create(:project) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Multiple issue updating from issues#index', :js do describe 'Multiple issue updating from issues#index', :js do
let!(:project) { create(:project) } let!(:project) { create(:project) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'User creates branch and merge request on issue page', :js do describe 'User creates branch and merge request on issue page', :js do
let(:membership_level) { :developer } let(:membership_level) { :developer }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'User creates confidential merge request on issue page', :js do describe 'User creates confidential merge request on issue page', :js do
include ProjectForksHelper include ProjectForksHelper
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'New issue breadcrumb' do describe 'New issue breadcrumb' do
let(:project) { create(:project) } let(:project) { create(:project) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
# These are written as feature specs because they cover more specific test scenarios # These are written as feature specs because they cover more specific test scenarios
# than the ones described on spec/services/notes/create_service_spec.rb for quick actions, # than the ones described on spec/services/notes/create_service_spec.rb for quick actions,
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User assigns themselves' do describe 'Merge request > User assigns themselves' do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User awards emoji', :js do describe 'Merge request > User awards emoji', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User creates MR' do describe 'Merge request > User creates MR' do
include ProjectForksHelper include ProjectForksHelper
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request < User customizes merge commit message', :js do describe 'Merge request < User customizes merge commit message', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User locks discussion', :js do describe 'Merge request > User locks discussion', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge requests > User merges immediately', :js do describe 'Merge requests > User merges immediately', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User merges only if pipeline succeeds', :js do describe 'Merge request > User merges only if pipeline succeeds', :js do
let(:merge_request) { create(:merge_request_with_diffs) } let(:merge_request) { create(:merge_request_with_diffs) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User merges when pipeline succeeds', :js do describe 'Merge request > User merges when pipeline succeeds', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User posts diff notes', :js do describe 'Merge request > User posts diff notes', :js do
include MergeRequestDiffHelpers include MergeRequestDiffHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User posts notes', :js do describe 'Merge request > User posts notes', :js do
include NoteInteractionHelpers include NoteInteractionHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User resolves conflicts', :js do describe 'Merge request > User resolves conflicts', :js do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User resolves diff notes and threads', :js do describe 'Merge request > User resolves diff notes and threads', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User scrolls to note on load', :js do describe 'Merge request > User scrolls to note on load', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees avatars on diff notes', :js do describe 'Merge request > User sees avatars on diff notes', :js do
include NoteInteractionHelpers include NoteInteractionHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'New merge request breadcrumb' do describe 'New merge request breadcrumb' do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees check out branch modal', :js do describe 'Merge request > User sees check out branch modal', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User cherry-picks', :js do describe 'Merge request > User cherry-picks', :js do
let(:group) { create(:group) } let(:group) { create(:group) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees closing issues message', :js do describe 'Merge request > User sees closing issues message', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees deleted target branch', :js do describe 'Merge request > User sees deleted target branch', :js do
let(:merge_request) { create(:merge_request) } let(:merge_request) { create(:merge_request) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees deployment widget', :js do 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
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees diff', :js do describe 'Merge request > User sees diff', :js do
include ProjectForksHelper include ProjectForksHelper
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees threads', :js do describe 'Merge request > User sees threads', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees empty state' do describe 'Merge request > User sees empty state' do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees merge button depending on unresolved threads', :js do describe 'Merge request > User sees merge button depending on unresolved threads', :js do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees pipelines triggered by merge request', :js do describe 'Merge request > User sees pipelines triggered by merge request', :js do
include ProjectForksHelper include ProjectForksHelper
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees merge widget', :js do describe 'Merge request > User sees merge widget', :js do
include ProjectForksHelper include ProjectForksHelper
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request < User sees mini pipeline graph', :js do describe 'Merge request < User sees mini pipeline graph', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees MR from deleted forked project', :js do describe 'Merge request > User sees MR from deleted forked project', :js do
include ProjectForksHelper include ProjectForksHelper
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
# This test serves as a regression test for a bug that caused an error # This test serves as a regression test for a bug that caused an error
# message to be shown by JavaScript when the source branch was deleted. # message to be shown by JavaScript when the source branch was deleted.
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees notes from forked project', :js do describe 'Merge request > User sees notes from forked project', :js do
include ProjectForksHelper include ProjectForksHelper
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees pipelines from forked project', :js do describe 'Merge request > User sees pipelines from forked project', :js do
include ProjectForksHelper include ProjectForksHelper
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees pipelines', :js do describe 'Merge request > User sees pipelines', :js do
describe 'pipeline tab' do describe 'pipeline tab' do
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees system notes', :js do describe 'Merge request > User sees system notes', :js do
let(:public_project) { create(:project, :public, :repository) } let(:public_project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees versions', :js do describe 'Merge request > User sees versions', :js do
let(:merge_request) do let(:merge_request) do
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User sees WIP help message' do describe 'Merge request > User sees WIP help message' do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User selects branches for new MR', :js do describe 'Merge request > User selects branches for new MR', :js do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge request > User toggles whitespace changes', :js do describe 'Merge request > User toggles whitespace changes', :js do
let(:merge_request) { create(:merge_request) } let(:merge_request) { create(:merge_request) }
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
# These are written as feature specs because they cover more specific test scenarios # These are written as feature specs because they cover more specific test scenarios
# than the ones described on spec/services/notes/create_service_spec.rb for quick actions, # than the ones described on spec/services/notes/create_service_spec.rb for quick actions,
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge Requests > Filters generic behavior', :js do describe 'Merge Requests > Filters generic behavior', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge Requests > User filters by assignees', :js do describe 'Merge Requests > User filters by assignees', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge Requests > User filters by labels', :js do describe 'Merge Requests > User filters by labels', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge Requests > User filters by milestones', :js do describe 'Merge Requests > User filters by milestones', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge requests > User filters by multiple criteria', :js do describe 'Merge requests > User filters by multiple criteria', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
# frozen_string_literal: true # frozen_string_literal: true
require 'rails_helper' require 'spec_helper'
describe 'Merge Requests > User filters by target branch', :js do describe 'Merge Requests > User filters by target branch', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
......
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