Merge branch '34319-remove-useless-type-definitions-from-specs' into 'master'
Remove superfluous tags in RSpec examples. Closes #34319 See merge request !12754
This commit is contained in:
commit
9981814514
844 changed files with 1249 additions and 1249 deletions
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'spec_helper'
|
||||
require 'rainbow/ext/string'
|
||||
|
||||
describe 'seed production settings', lib: true do
|
||||
describe 'seed production settings' do
|
||||
include StubENV
|
||||
let(:settings_file) { Rails.root.join('db/fixtures/production/010_settings.rb') }
|
||||
let(:settings) { Gitlab::CurrentSettings.current_application_settings }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Abuse reports', feature: true do
|
||||
feature 'Abuse reports' do
|
||||
let(:another_user) { create(:user) }
|
||||
|
||||
before do
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Admin Appearance', feature: true do
|
||||
feature 'Admin Appearance' do
|
||||
let!(:appearance) { create(:appearance) }
|
||||
|
||||
scenario 'Create new appearance' do
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Admin cohorts page', feature: true do
|
||||
feature 'Admin cohorts page' do
|
||||
before do
|
||||
sign_in(create(:admin))
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Admin Groups', feature: true do
|
||||
feature 'Admin Groups' do
|
||||
include Select2Helper
|
||||
|
||||
let(:internal) { Gitlab::VisibilityLevel::INTERNAL }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature "Admin Health Check", feature: true do
|
||||
feature "Admin Health Check" do
|
||||
include StubENV
|
||||
|
||||
before do
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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') }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Admin::Hooks', feature: true do
|
||||
describe 'Admin::Hooks' do
|
||||
before do
|
||||
@project = create(:project)
|
||||
sign_in(create(:admin))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
RSpec.describe 'admin manage applications', feature: true do
|
||||
RSpec.describe 'admin manage applications' do
|
||||
before do
|
||||
sign_in(create(:admin))
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "Admin::Projects", feature: true do
|
||||
describe "Admin::Projects" do
|
||||
include Select2Helper
|
||||
|
||||
let(:user) { create :user }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Admin updates settings', feature: true do
|
||||
feature 'Admin updates settings' do
|
||||
include StubENV
|
||||
|
||||
before do
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Admin uses repository checks', feature: true do
|
||||
feature 'Admin uses repository checks' do
|
||||
include StubENV
|
||||
|
||||
before do
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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') }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "Dashboard Feed", feature: true do
|
||||
describe "Dashboard Feed" do
|
||||
describe "GET /" do
|
||||
let!(:user) { create(:user, name: "Jonh") }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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') }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "User Feed", feature: true do
|
||||
describe "User Feed" do
|
||||
describe "GET /" do
|
||||
let!(:user) { create(:user) }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Issue Boards', feature: true, js: true do
|
||||
describe 'Issue Boards', js: true do
|
||||
include DragTo
|
||||
|
||||
let(:group) { create(:group, :nested) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Issue Boards', :feature, :js do
|
||||
describe 'Issue Boards', :js do
|
||||
include DragTo
|
||||
|
||||
let(:project) { create(:empty_project, :public) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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') }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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 }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
RSpec.describe 'Dashboard Group', feature: true do
|
||||
RSpec.describe 'Dashboard Group' do
|
||||
before do
|
||||
sign_in(create(:user))
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
RSpec.describe 'Dashboard Help', feature: true do
|
||||
RSpec.describe 'Dashboard Help' do
|
||||
before do
|
||||
sign_in(create(:user))
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Dashboard Issues filtering', js: true do
|
||||
feature 'Dashboard Issues filtering', :js do
|
||||
include SortingHelper
|
||||
|
||||
let(:user) { create(:user) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Dashboard > milestone filter', :feature, :js do
|
||||
feature 'Dashboard > milestone filter', :js do
|
||||
include FilterItemSelectHelper
|
||||
|
||||
let(:user) { create(:user) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Dashboard > Milestones', feature: true do
|
||||
feature 'Dashboard > Milestones' do
|
||||
describe 'as anonymous user' do
|
||||
before do
|
||||
visit dashboard_milestones_path
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Dashboard shortcuts', :feature, :js do
|
||||
feature 'Dashboard shortcuts', :js do
|
||||
context 'logged in' do
|
||||
before do
|
||||
sign_in(create(:user))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Discussion Comments Merge Request', :feature, :js do
|
||||
describe 'Discussion Comments Merge Request', :js do
|
||||
include RepoHelpers
|
||||
|
||||
let(:user) { create(:user) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
|
||||
describe "for issues", feature: true, js: true do
|
||||
describe "for issues", js: true do
|
||||
before do
|
||||
@other_issue = create(:issue,
|
||||
author: user,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Global search', feature: true do
|
||||
feature 'Global search' do
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:empty_project, namespace: user.namespace) }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Group activity page', feature: true do
|
||||
feature 'Group activity page' do
|
||||
let(:user) { create(:group_member, :developer, user: create(:user), group: group ).user }
|
||||
let(:group) { create(:group) }
|
||||
let(:path) { activity_group_path(group) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Group name toggle', feature: true, js: true do
|
||||
feature 'Group name toggle', js: true do
|
||||
let(:group) { create(:group) }
|
||||
let(:nested_group_1) { create(:group, parent: group) }
|
||||
let(:nested_group_2) { create(:group, parent: nested_group_1) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Edit group settings', feature: true do
|
||||
feature 'Edit group settings' do
|
||||
given(:user) { create(:user) }
|
||||
given(:group) { create(:group, path: 'foo') }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Group issues page', feature: true do
|
||||
feature 'Group issues page' do
|
||||
let(:path) { issues_group_path(group) }
|
||||
let(:issuable) { create(:issue, project: project, title: "this is my created issuable")}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Edit group label', feature: true do
|
||||
feature 'Edit group label' do
|
||||
given(:user) { create(:user) }
|
||||
given(:group) { create(:group) }
|
||||
given(:label) { create(:group_label, group: group) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Labels subscription', feature: true do
|
||||
feature 'Labels subscription' do
|
||||
let(:user) { create(:user) }
|
||||
let(:group) { create(:group) }
|
||||
let!(:feature) { create(:group_label, group: group, title: 'feature') }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Groups > Members > Leave group', feature: true do
|
||||
feature 'Groups > Members > Leave group' do
|
||||
let(:user) { create(:user) }
|
||||
let(:other_user) { create(:user) }
|
||||
let(:group) { create(:group) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Groups > Members > List members', feature: true do
|
||||
feature 'Groups > Members > List members' do
|
||||
include Select2Helper
|
||||
|
||||
let(:user1) { create(:user, name: 'John Doe') }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Groups > Members > Manage access requests', feature: true do
|
||||
feature 'Groups > Members > Manage access requests' do
|
||||
let(:user) { create(:user) }
|
||||
let(:owner) { create(:user) }
|
||||
let(:group) { create(:group, :public, :access_requestable) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Groups > Members > Manage members', feature: true do
|
||||
feature 'Groups > Members > Manage members' do
|
||||
include Select2Helper
|
||||
|
||||
let(:user1) { create(:user, name: 'John Doe') }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Groups > Members > Request access', feature: true do
|
||||
feature 'Groups > Members > Request access' do
|
||||
let(:user) { create(:user) }
|
||||
let(:owner) { create(:user) }
|
||||
let(:group) { create(:group, :public, :access_requestable) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Groups > Members > Sort members', feature: true do
|
||||
feature 'Groups > Members > Sort members' do
|
||||
let(:owner) { create(:user, name: 'John Doe') }
|
||||
let(:developer) { create(:user, name: 'Mary Jane', last_sign_in_at: 5.days.ago) }
|
||||
let(:group) { create(:group) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Group merge requests page', feature: true do
|
||||
feature 'Group merge requests page' do
|
||||
let(:path) { merge_requests_group_path(group) }
|
||||
let(:issuable) { create(:merge_request, source_project: project, target_project: project, title: 'this is my created issuable') }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Group milestones', :feature, :js do
|
||||
feature 'Group milestones', :js do
|
||||
let(:group) { create(:group) }
|
||||
let!(:project) { create(:project_empty_repo, group: group) }
|
||||
let(:user) { create(:group_member, :master, user: create(:user), group: group ).user }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Group show page', feature: true do
|
||||
feature 'Group show page' do
|
||||
let(:group) { create(:group) }
|
||||
let(:path) { group_path(group) }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Group', feature: true do
|
||||
feature 'Group' do
|
||||
before do
|
||||
sign_in(create(:admin))
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Help Pages', feature: true do
|
||||
describe 'Help Pages' do
|
||||
describe 'Get the main help page' do
|
||||
shared_examples_for 'help page' do |prefix: ''|
|
||||
it 'prefixes links correctly' do
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Issuables Close/Reopen/Report toggle', :feature do
|
||||
describe 'Issuables Close/Reopen/Report toggle' do
|
||||
let(:user) { create(:user) }
|
||||
|
||||
shared_examples 'an issuable close/reopen/report toggle' do
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Projects > Issuables > Default sort order', feature: true do
|
||||
describe 'Projects > Issuables > Default sort order' do
|
||||
let(:project) { create(:empty_project, :public) }
|
||||
|
||||
let(:first_created_issuable) { issuables.order_created_asc.first }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'issuable list', feature: true do
|
||||
describe 'issuable list' do
|
||||
let(:project) { create(:empty_project) }
|
||||
let(:user) { create(:user) }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Markdown References', :feature, :js do
|
||||
describe 'Markdown References', :js do
|
||||
let(:user) { create(:user) }
|
||||
let(:actual_project) { create(:project, :public) }
|
||||
let(:merge_request) { create(:merge_request, target_project: actual_project, source_project: actual_project)}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Awards Emoji', feature: true do
|
||||
describe 'Awards Emoji' do
|
||||
let!(:project) { create(:project, :public) }
|
||||
let!(:user) { create(:user) }
|
||||
let(:issue) do
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Issue awards', js: true, feature: true do
|
||||
feature 'Issue awards', js: true do
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:project, :public) }
|
||||
let(:issue) { create(:issue, project: project) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Issues > Labels bulk assignment', feature: true do
|
||||
feature 'Issues > Labels bulk assignment' do
|
||||
let(:user) { create(:user) }
|
||||
let!(:project) { create(:project) }
|
||||
let!(:issue1) { create(:issue, project: project, title: "Issue 1") }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Create Branch/Merge Request Dropdown on issue page', feature: true, js: true do
|
||||
feature 'Create Branch/Merge Request Dropdown on issue page', js: true do
|
||||
let(:user) { create(:user) }
|
||||
let!(:project) { create(:project) }
|
||||
let(:issue) { create(:issue, project: project, title: 'Cherry-Coloured Funk') }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Resolving all open discussions in a merge request from an issue', feature: true, js: true do
|
||||
feature 'Resolving all open discussions in a merge request from an issue', js: true do
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:project) }
|
||||
let(:merge_request) { create(:merge_request, source_project: project) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Resolve an open discussion in a merge request by creating an issue', feature: true do
|
||||
feature 'Resolve an open discussion in a merge request by creating an issue' do
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:project, only_allow_merge_if_all_discussions_are_resolved: true) }
|
||||
let(:merge_request) { create(:merge_request, source_project: project) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Dropdown assignee', :feature, :js do
|
||||
describe 'Dropdown assignee', :js do
|
||||
include FilteredSearchHelpers
|
||||
|
||||
let!(:project) { create(:empty_project) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Dropdown author', js: true, feature: true do
|
||||
describe 'Dropdown author', js: true do
|
||||
include FilteredSearchHelpers
|
||||
|
||||
let!(:project) { create(:empty_project) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Dropdown hint', :js, :feature do
|
||||
describe 'Dropdown hint', :js do
|
||||
include FilteredSearchHelpers
|
||||
|
||||
let!(:project) { create(:empty_project) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Dropdown label', js: true, feature: true do
|
||||
describe 'Dropdown label', js: true do
|
||||
include FilteredSearchHelpers
|
||||
|
||||
let(:project) { create(:empty_project) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Dropdown milestone', :feature, :js do
|
||||
describe 'Dropdown milestone', :js do
|
||||
include FilteredSearchHelpers
|
||||
|
||||
let!(:project) { create(:empty_project) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Filter issues', js: true, feature: true do
|
||||
describe 'Filter issues', js: true do
|
||||
include Devise::Test::IntegrationHelpers
|
||||
include FilteredSearchHelpers
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Recent searches', js: true, feature: true do
|
||||
describe 'Recent searches', js: true do
|
||||
include FilteredSearchHelpers
|
||||
|
||||
let(:project_1) { create(:empty_project, :public) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Search bar', js: true, feature: true do
|
||||
describe 'Search bar', js: true do
|
||||
include FilteredSearchHelpers
|
||||
|
||||
let!(:project) { create(:empty_project) }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Visual tokens', js: true, feature: true do
|
||||
describe 'Visual tokens', js: true do
|
||||
include FilteredSearchHelpers
|
||||
include WaitForRequests
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'New/edit issue', :feature, :js do
|
||||
describe 'New/edit issue', :js do
|
||||
include ActionView::Helpers::JavaScriptHelper
|
||||
include FormHelper
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'GFM autocomplete', feature: true, js: true do
|
||||
feature 'GFM autocomplete', js: true do
|
||||
let(:user) { create(:user, name: '💃speciąl someone💃', username: 'someone.special') }
|
||||
let(:project) { create(:project) }
|
||||
let(:label) { create(:label, project: project, title: 'special+') }
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue