Commit 7e113b68 authored by Keifer Furzland's avatar Keifer Furzland Committed by Rémy Coutable

Remove superfluous type defs in specs

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 4eebd8e1
require 'rails_helper'
describe SentNotificationsController, type: :controller do
describe SentNotificationsController do
let(:user) { create(:user) }
let(:project) { create(:empty_project) }
let(:sent_notification) { create(:sent_notification, project: project, noteable: issue, recipient: user) }
......
require 'spec_helper'
feature 'Abuse reports', feature: true do
feature 'Abuse reports' do
let(:another_user) { create(:user) }
before do
......
require 'spec_helper'
describe "Admin::AbuseReports", feature: true, js: true do
describe "Admin::AbuseReports", js: true do
let(:user) { create(:user) }
context 'as an admin' do
......
require 'spec_helper'
feature 'Admin Appearance', feature: true do
feature 'Admin Appearance' do
let!(:appearance) { create(:appearance) }
scenario 'Create new appearance' do
......
require 'spec_helper'
feature 'Admin Broadcast Messages', feature: true do
feature 'Admin Broadcast Messages' do
before do
sign_in(create(:admin))
create(:broadcast_message, :expired, message: 'Migration to new server')
......
require 'rails_helper'
feature 'Admin cohorts page', feature: true do
feature 'Admin cohorts page' do
before do
sign_in(create(:admin))
end
......
require 'spec_helper'
RSpec.describe 'admin deploy keys', type: :feature do
RSpec.describe 'admin deploy keys' do
let!(:deploy_key) { create(:deploy_key, public: true) }
let!(:another_deploy_key) { create(:another_deploy_key, public: true) }
......
require 'rails_helper'
feature 'Admin disables Git access protocol', feature: true do
feature 'Admin disables Git access protocol' do
include StubENV
let(:project) { create(:empty_project, :empty_repo) }
......
require 'rails_helper'
feature 'Admin disables 2FA for a user', feature: true do
feature 'Admin disables 2FA for a user' do
scenario 'successfully', js: true do
sign_in(create(:admin))
user = create(:user, :two_factor)
......
require 'spec_helper'
feature 'Admin Groups', feature: true do
feature 'Admin Groups' do
include Select2Helper
let(:internal) { Gitlab::VisibilityLevel::INTERNAL }
......
require 'spec_helper'
feature "Admin Health Check", feature: true do
feature "Admin Health Check" do
include StubENV
before do
......
require 'spec_helper'
feature 'Admin::HookLogs', feature: true do
feature 'Admin::HookLogs' do
let(:project) { create(:project) }
let(:system_hook) { create(:system_hook) }
let(:hook_log) { create(:web_hook_log, web_hook: system_hook, internal_error_message: 'some error') }
......
require 'spec_helper'
describe 'Admin::Hooks', feature: true do
describe 'Admin::Hooks' do
before do
@project = create(:project)
sign_in(create(:admin))
......
require 'spec_helper'
RSpec.describe 'admin manage applications', feature: true do
RSpec.describe 'admin manage applications' do
before do
sign_in(create(:admin))
end
......
require 'spec_helper'
describe "Admin::Projects", feature: true do
describe "Admin::Projects" do
include Select2Helper
let(:user) { create :user }
......
require 'spec_helper'
describe 'Admin::RequestsProfilesController', feature: true do
describe 'Admin::RequestsProfilesController' do
before do
FileUtils.mkdir_p(Gitlab::RequestProfiler::PROFILES_DIR)
sign_in(create(:admin))
......
require 'spec_helper'
feature 'Admin updates settings', feature: true do
feature 'Admin updates settings' do
include StubENV
before do
......
require 'spec_helper'
describe 'Admin > Users > Impersonation Tokens', feature: true, js: true do
describe 'Admin > Users > Impersonation Tokens', js: true do
let(:admin) { create(:admin) }
let!(:user) { create(:user) }
......
require 'spec_helper'
describe "Admin::Users", feature: true do
describe "Admin::Users" do
let!(:user) do
create(:omniauth_user, provider: 'twitter', extern_uid: '123456')
end
......
require 'rails_helper'
feature 'Admin uses repository checks', feature: true do
feature 'Admin uses repository checks' do
include StubENV
before do
......
require 'spec_helper'
describe "Dashboard Issues Feed", feature: true do
describe "Dashboard Issues Feed" do
describe "GET /issues" do
let!(:user) { create(:user, email: 'private1@example.com', public_email: 'public1@example.com') }
let!(:assignee) { create(:user, email: 'private2@example.com', public_email: 'public2@example.com') }
......
require 'spec_helper'
describe "Dashboard Feed", feature: true do
describe "Dashboard Feed" do
describe "GET /" do
let!(:user) { create(:user, name: "Jonh") }
......
require 'spec_helper'
describe 'Issues Feed', feature: true do
describe 'Issues Feed' do
describe 'GET /issues' do
let!(:user) { create(:user, email: 'private1@example.com', public_email: 'public1@example.com') }
let!(:assignee) { create(:user, email: 'private2@example.com', public_email: 'public2@example.com') }
......
require 'spec_helper'
describe "User Feed", feature: true do
describe "User Feed" do
describe "GET /" do
let!(:user) { create(:user) }
......
require 'rails_helper'
describe 'Issue Boards add issue modal', :feature, :js do
describe 'Issue Boards add issue modal', :js do
let(:project) { create(:empty_project, :public) }
let(:board) { create(:board, project: project) }
let(:user) { create(:user) }
......
require 'rails_helper'
describe 'Issue Boards', feature: true, js: true do
describe 'Issue Boards', js: true do
include DragTo
let(:group) { create(:group, :nested) }
......
require 'rails_helper'
describe 'Issue Boards', :feature, :js do
describe 'Issue Boards', :js do
include DragTo
let(:project) { create(:empty_project, :public) }
......
require 'rails_helper'
describe 'Issue Boards shortcut', feature: true, js: true do
describe 'Issue Boards shortcut', js: true do
let(:project) { create(:empty_project) }
before do
......
require 'rails_helper'
describe 'Issue Boards add issue modal filtering', :feature, :js do
describe 'Issue Boards add issue modal filtering', :js do
let(:project) { create(:empty_project, :public) }
let(:board) { create(:board, project: project) }
let(:planning) { create(:label, project: project, name: 'Planning') }
......
require 'rails_helper'
describe 'Issue Boards new issue', feature: true, js: true do
describe 'Issue Boards new issue', js: true do
let(:project) { create(:empty_project, :public) }
let(:board) { create(:board, project: project) }
let!(:list) { create(:list, board: board, position: 0) }
......
require 'rails_helper'
describe 'Issue Boards', feature: true, js: true do
describe 'Issue Boards', js: true do
let(:user) { create(:user) }
let(:user2) { create(:user) }
let(:project) { create(:empty_project, :public) }
......
require 'rails_helper'
describe 'Sub-group project issue boards', :feature, :js do
describe 'Sub-group project issue boards', :js do
let(:group) { create(:group) }
let(:nested_group_1) { create(:group, parent: group) }
let(:project) { create(:empty_project, group: nested_group_1) }
......
require 'spec_helper'
feature 'Contributions Calendar', :feature, :js do
feature 'Contributions Calendar', :js do
let(:user) { create(:user) }
let(:contributed_project) { create(:empty_project, :public) }
let(:issue_note) { create(:note, project: contributed_project) }
......
......@@ -77,7 +77,7 @@ describe 'Commits' do
end
end
describe 'Commit builds', :feature, :js do
describe 'Commit builds', :js do
before do
visit ci_status_path(pipeline)
end
......@@ -152,7 +152,7 @@ describe 'Commits' do
visit ci_status_path(pipeline)
end
it 'Renders header', :feature, :js do
it 'Renders header', :js do
expect(page).to have_content pipeline.sha[0..7]
expect(page).to have_content pipeline.git_commit_message
expect(page).to have_content pipeline.user.name
......@@ -165,7 +165,7 @@ describe 'Commits' do
end
end
context 'when accessing internal project with disallowed access', :feature, :js do
context 'when accessing internal project with disallowed access', :js do
before do
project.update(
visibility_level: Gitlab::VisibilityLevel::INTERNAL,
......
require 'spec_helper'
describe 'Copy as GFM', feature: true, js: true do
describe 'Copy as GFM', js: true do
include MarkupHelper
include RepoHelpers
include ActionView::Helpers::JavaScriptHelper
......
require 'spec_helper'
feature 'Cycle Analytics', feature: true, js: true do
feature 'Cycle Analytics', js: true do
let(:user) { create(:user) }
let(:guest) { create(:user) }
let(:project) { create(:project, :repository) }
......
require 'spec_helper'
RSpec.describe 'Dashboard Active Tab', js: true, feature: true do
RSpec.describe 'Dashboard Active Tab', js: true do
before do
sign_in(create(:user))
end
......
require 'spec_helper'
RSpec.describe 'Dashboard Archived Project', feature: true do
RSpec.describe 'Dashboard Archived Project' do
let(:user) { create :user }
let(:project) { create :project}
let(:archived_project) { create(:project, :archived) }
......
require 'spec_helper'
feature 'Tooltips on .timeago dates', feature: true, js: true do
feature 'Tooltips on .timeago dates', js: true do
let(:user) { create(:user) }
let(:project) { create(:project, name: 'test', namespace: user.namespace) }
let(:created_date) { Date.yesterday.to_time }
......
require 'spec_helper'
RSpec.describe 'Dashboard Group', feature: true do
RSpec.describe 'Dashboard Group' do
before do
sign_in(create(:user))
end
......
require 'spec_helper'
RSpec.describe 'Dashboard Help', feature: true do
RSpec.describe 'Dashboard Help' do
before do
sign_in(create(:user))
end
......
require 'spec_helper'
describe 'Navigation bar counter', :use_clean_rails_memory_store_caching, feature: true do
describe 'Navigation bar counter', :use_clean_rails_memory_store_caching do
let(:user) { create(:user) }
let(:project) { create(:empty_project, namespace: user.namespace) }
let(:issue) { create(:issue, project: project) }
......
require 'spec_helper'
feature 'Dashboard Issues filtering', js: true do
feature 'Dashboard Issues filtering', :js do
include SortingHelper
let(:user) { create(:user) }
......
require 'spec_helper'
RSpec.describe 'Dashboard Issues', feature: true do
RSpec.describe 'Dashboard Issues' do
let(:current_user) { create :user }
let(:user) { current_user } # Shared examples depend on this being available
let!(:public_project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe 'Dashboard > label filter', feature: true, js: true do
describe 'Dashboard > label filter', js: true do
let(:user) { create(:user) }
let(:project) { create(:project, name: 'test', namespace: user.namespace) }
let(:project2) { create(:project, name: 'test2', path: 'test2', namespace: user.namespace) }
......
require 'spec_helper'
feature 'Dashboard > milestone filter', :feature, :js do
feature 'Dashboard > milestone filter', :js do
include FilterItemSelectHelper
let(:user) { create(:user) }
......
require 'spec_helper'
describe 'Dashboard milestone tabs', :js, :feature do
describe 'Dashboard milestone tabs', :js do
let(:user) { create(:user) }
let(:project) { create(:empty_project) }
let!(:label) { create(:label, project: project) }
......
require 'spec_helper'
feature 'Dashboard > Milestones', feature: true do
feature 'Dashboard > Milestones' do
describe 'as anonymous user' do
before do
visit dashboard_milestones_path
......
require 'spec_helper'
feature 'Project member activity', feature: true, js: true do
feature 'Project member activity', js: true do
let(:user) { create(:user) }
let(:project) { create(:empty_project, :public, name: 'x', namespace: user.namespace) }
......
require 'spec_helper'
feature 'Dashboard shortcuts', :feature, :js do
feature 'Dashboard shortcuts', :js do
context 'logged in' do
before do
sign_in(create(:user))
......
require 'spec_helper'
describe 'Dashboard snippets', feature: true do
describe 'Dashboard snippets' do
context 'when the project has snippets' do
let(:project) { create(:empty_project, :public) }
let!(:snippets) { create_list(:project_snippet, 2, :public, author: project.owner, project: project) }
......
require 'spec_helper'
describe 'Dashboard > User filters projects', :feature do
describe 'Dashboard > User filters projects' do
let(:user) { create(:user) }
let(:project) { create(:project, name: 'Victorialand', namespace: user.namespace) }
let(:user2) { create(:user) }
......
require 'spec_helper'
describe 'Discussion Comments Merge Request', :feature, :js do
describe 'Discussion Comments Merge Request', :js do
include RepoHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe 'Discussion Comments Issue', :feature, :js do
describe 'Discussion Comments Issue', :js do
let(:user) { create(:user) }
let(:project) { create(:empty_project) }
let(:issue) { create(:issue, project: project) }
......
require 'spec_helper'
describe 'Discussion Comments Merge Request', :feature, :js do
describe 'Discussion Comments Merge Request', :js do
let(:user) { create(:user) }
let(:project) { create(:project) }
let(:merge_request) { create(:merge_request, source_project: project) }
......
require 'spec_helper'
describe 'Discussion Comments Issue', :feature, :js do
describe 'Discussion Comments Issue', :js do
let(:user) { create(:user) }
let(:project) { create(:empty_project) }
let(:snippet) { create(:project_snippet, :private, project: project, author: user) }
......
require 'spec_helper'
feature 'Expand and collapse diffs', js: true, feature: true do
feature 'Expand and collapse diffs', js: true do
let(:branch) { 'expand-collapse-diffs' }
let(:project) { create(:project, :repository) }
......
require 'spec_helper'
describe 'Explore Groups page', :js, :feature do
describe 'Explore Groups page', :js do
let!(:user) { create :user }
let!(:group) { create(:group) }
let!(:public_group) { create(:group, :public) }
......
require 'spec_helper'
feature 'Top Plus Menu', feature: true, js: true do
feature 'Top Plus Menu', :js do
let(:user) { create(:user) }
let(:group) { create(:group) }
let(:project) { create(:project, :repository, creator: user, namespace: user.namespace) }
......
require 'spec_helper'
describe "GitLab Flavored Markdown", feature: true do
describe "GitLab Flavored Markdown" do
let(:user) { create(:user) }
let(:project) { create(:empty_project) }
let(:issue) { create(:issue, project: project) }
......@@ -49,7 +49,7 @@ describe "GitLab Flavored Markdown", feature: true do
end
end