Commit 34b6fe75 authored by Sean McGivern's avatar Sean McGivern

Merge branch '220018-rspec-zero-monkey-patching-mode-17' into 'master'

RSpec zero monkey patching mode

See merge request gitlab-org/gitlab!33739
parents 619b7728 96f55927
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Pipeline Schedules', :js do
RSpec.describe 'Pipeline Schedules', :js do
include PipelineSchedulesHelper
let!(:project) { create(:project, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Pipeline', :js do
RSpec.describe 'Pipeline', :js do
include RoutesHelpers
include ProjectForksHelper
include ::ExclusiveLeaseHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Pipelines', :js do
RSpec.describe 'Pipelines', :js do
include ProjectForksHelper
let(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Raw > User interacts with raw endpoint' do
RSpec.describe 'Projects > Raw > User interacts with raw endpoint' do
include RepoHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User edits Release', :js do
RSpec.describe 'User edits Release', :js do
let_it_be(:project) { create(:project, :repository) }
let_it_be(:release) { create(:release, project: project, name: 'The first release' ) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User views Release', :js do
RSpec.describe 'User views Release', :js do
let(:project) { create(:project, :repository) }
let(:release) { create(:release, project: project, name: 'The first release' ) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User views releases', :js do
RSpec.describe 'User views releases', :js do
let_it_be(:project) { create(:project, :repository, :private) }
let_it_be(:release) { create(:release, project: project, name: 'The first release' ) }
let_it_be(:maintainer) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project remote mirror', :feature do
RSpec.describe 'Project remote mirror', :feature do
let(:project) { create(:project, :repository, :remote_mirror) }
let(:remote_mirror) { project.remote_mirrors.first }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Functions', :js do
RSpec.describe 'Functions', :js do
include KubernetesHelpers
include ReactiveCachingHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Disable individual triggers' do
RSpec.describe 'Disable individual triggers' do
include_context 'project service activation'
let(:checkbox_selector) { 'input[type=checkbox][id$=_events]' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Prometheus external alerts', :js do
RSpec.describe 'Prometheus external alerts', :js do
include_context 'project service activation'
let(:alerts_section_selector) { '.js-prometheus-alerts' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Alerts', :js do
RSpec.describe 'User activates Alerts', :js do
let_it_be(:project) { create(:project) }
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Asana' do
RSpec.describe 'User activates Asana' do
include_context 'project service activation'
it 'activates service', :js do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Assembla' do
RSpec.describe 'User activates Assembla' do
include_context 'project service activation'
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Atlassian Bamboo CI' do
RSpec.describe 'User activates Atlassian Bamboo CI' do
include_context 'project service activation'
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Emails on push' do
RSpec.describe 'User activates Emails on push' do
include_context 'project service activation'
it 'activates service', :js do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Flowdock' do
RSpec.describe 'User activates Flowdock' do
include_context 'project service activation' do
let(:project) { create(:project, :repository) }
end
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates HipChat', :js do
RSpec.describe 'User activates HipChat', :js do
include_context 'project service activation'
context 'with standart settings' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Irker (IRC gateway)' do
RSpec.describe 'User activates Irker (IRC gateway)' do
include_context 'project service activation'
it 'activates service', :js do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates issue tracker', :js do
RSpec.describe 'User activates issue tracker', :js do
include_context 'project service activation'
let(:url) { 'http://tracker.example.com' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates JetBrains TeamCity CI' do
RSpec.describe 'User activates JetBrains TeamCity CI' do
include_context 'project service activation'
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Jira', :js do
RSpec.describe 'User activates Jira', :js do
include_context 'project service activation'
let(:url) { 'http://jira.example.com' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Set up Mattermost slash commands', :js do
RSpec.describe 'Set up Mattermost slash commands', :js do
describe 'user visits the mattermost slash command config page' do
include_context 'project service activation'
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Packagist' do
RSpec.describe 'User activates Packagist' do
include_context 'project service activation'
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates PivotalTracker' do
RSpec.describe 'User activates PivotalTracker' do
include_context 'project service activation'
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Prometheus' do
RSpec.describe 'User activates Prometheus' do
include_context 'project service activation'
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Pushover' do
RSpec.describe 'User activates Pushover' do
include_context 'project service activation'
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User activates Slack notifications' do
RSpec.describe 'User activates Slack notifications' do
include_context 'project service activation'
context 'when service is not configured yet' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Slack slash commands' do
RSpec.describe 'Slack slash commands' do
include_context 'project service activation'
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User views services' do
RSpec.describe 'User views services' do
include_context 'project service activation'
it 'shows the list of available services' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project > Settings > Access Tokens', :js do
RSpec.describe 'Project > Settings > Access Tokens', :js do
let_it_be(:user) { create(:user) }
let_it_be(:bot_user) { create(:user, :project_bot) }
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > External Authorization Classification Label setting' do
RSpec.describe 'Projects > Settings > External Authorization Classification Label setting' do
let(:user) { create(:user) }
let(:project) { create(:project_empty_repo) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > For a forked project', :js do
RSpec.describe 'Projects > Settings > For a forked project', :js do
include ProjectForksHelper
let(:user) { create(:user) }
let(:original_project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > LFS settings' do
RSpec.describe 'Projects > Settings > LFS settings' do
let(:project) { create(:project) }
let(:user) { create(:user) }
let(:role) { :maintainer }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > For a forked project', :js do
RSpec.describe 'Projects > Settings > For a forked project', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :repository, create_templates: :issue) }
let(:role) { :maintainer }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe "Projects > Settings > Pipelines settings" do
RSpec.describe "Projects > Settings > Pipelines settings" do
let(:project) { create(:project) }
let(:user) { create(:user) }
let(:role) { :developer }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project Badges' do
RSpec.describe 'Project Badges' do
include WaitForRequests
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects settings' do
RSpec.describe 'Projects settings' do
let_it_be(:project) { create(:project) }
let(:user) { project.owner }
let(:panel) { find('.general-settings', match: :first) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project > Settings > CI/CD > Container registry tag expiration policy', :js do
RSpec.describe 'Project > Settings > CI/CD > Container registry tag expiration policy', :js do
let(:user) { create(:user) }
let(:project) { create(:project, namespace: user.namespace, container_registry_enabled: container_registry_enabled) }
let(:container_registry_enabled) { true }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > Repository settings' do
RSpec.describe 'Projects > Settings > Repository settings' do
let(:project) { create(:project_empty_repo) }
let(:user) { create(:user) }
let(:role) { :developer }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > User archives a project' do
RSpec.describe 'Projects > Settings > User archives a project' do
let(:user) { create(:user) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > User changes avatar' do
RSpec.describe 'Projects > Settings > User changes avatar' do
let(:project) { create(:project, :repository) }
let(:user) { project.creator }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > User changes default branch' do
RSpec.describe 'Projects > Settings > User changes default branch' do
include Select2Helper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "User interacts with deploy keys", :js do
RSpec.describe "User interacts with deploy keys", :js do
let(:project) { create(:project, :repository) }
let(:user) { project.owner }
......
# frozen_string_literal: true
require 'spec_helper'
describe 'Projects > Settings > User manages merge request settings' do
RSpec.describe 'Projects > Settings > User manages merge request settings' do
let(:user) { create(:user) }
let(:project) { create(:project, :public, namespace: user.namespace, path: 'gitlab', name: 'sample') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > User manages project members' do
RSpec.describe 'Projects > Settings > User manages project members' do
let(:group) { create(:group, name: 'OpenSource') }
let(:project) { create(:project) }
let(:project2) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > User renames a project' do
RSpec.describe 'Projects > Settings > User renames a project' do
let(:user) { create(:user) }
let(:project) { create(:project, namespace: user.namespace, path: 'gitlab', name: 'sample') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Repository Settings > User sees revoke deploy token modal', :js do
RSpec.describe 'Repository Settings > User sees revoke deploy token modal', :js do
let(:project) { create(:project, :public, :repository) }
let(:user) { project.creator }
let(:role) { :developer }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > User tags a project' do
RSpec.describe 'Projects > Settings > User tags a project' do
let(:user) { create(:user) }
let(:project) { create(:project, namespace: user.namespace) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > User transfers a project', :js do
RSpec.describe 'Projects > Settings > User transfers a project', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :repository, namespace: user.namespace) }
let(:group) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > Visibility settings', :js do
RSpec.describe 'Projects > Settings > Visibility settings', :js do
let(:user) { create(:user) }
let(:project) { create(:project, namespace: user.namespace, visibility_level: 20) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Settings > Webhook Settings' do
RSpec.describe 'Projects > Settings > Webhook Settings' do
let(:project) { create(:project) }
let(:user) { create(:user) }
let(:webhooks_path) { project_hooks_path(project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > Developer views empty project instructions' do
RSpec.describe 'Projects > Show > Developer views empty project instructions' do
let(:project) { create(:project, :empty_repo) }
let(:developer) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > Download buttons' do
RSpec.describe 'Projects > Show > Download buttons' do
let(:user) { create(:user) }
let(:role) { :developer }
let(:status) { 'success' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'No Password Alert' do
RSpec.describe 'No Password Alert' do
let(:project) { create(:project, :repository, namespace: user.namespace) }
context 'with internal auth enabled' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > Redirects' do
RSpec.describe 'Projects > Show > Redirects' do
let(:user) { create :user }
let(:public_project) { create :project, :public }
let(:private_project) { create :project, :private }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > RSS' do
RSpec.describe 'Projects > Show > RSS' do
let(:user) { create(:user) }
let(:project) { create(:project, :repository, visibility_level: Gitlab::VisibilityLevel::PUBLIC) }
let(:path) { project_path(project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project > Show > User interacts with auto devops implicitly enabled banner' do
RSpec.describe 'Project > Show > User interacts with auto devops implicitly enabled banner' do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > User interacts with project stars' do
RSpec.describe 'Projects > Show > User interacts with project stars' do
let(:project) { create(:project, :public, :repository) }
context 'when user is signed in', :js do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > User manages notifications', :js do
RSpec.describe 'Projects > Show > User manages notifications', :js do
let(:project) { create(:project, :public, :repository) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > Collaboration links', :js do
RSpec.describe 'Projects > Show > Collaboration links', :js do
using RSpec::Parameterized::TableSyntax
let(:project) { create(:project, :repository, :public) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > User sees a deletion failure message' do
RSpec.describe 'Projects > Show > User sees a deletion failure message' do
let(:project) { create(:project, :empty_repo, pending_delete: true) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > User sees Git instructions' do
RSpec.describe 'Projects > Show > User sees Git instructions' do
let_it_be(:user) { create(:user) }
shared_examples_for 'redirects to the sign in page' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > User sees last commit CI status' do
RSpec.describe 'Projects > Show > User sees last commit CI status' do
let_it_be(:project) { create(:project, :repository, :public) }
it 'shows the project README', :js do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > User sees README' do
RSpec.describe 'Projects > Show > User sees README' do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project, :repository, :public) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > User sees setup shortcut buttons' do
RSpec.describe 'Projects > Show > User sees setup shortcut buttons' do
# For "New file", "Add license" functionality,
# see spec/features/projects/files/project_owner_creates_license_file_spec.rb
# see spec/features/projects/files/project_owner_sees_link_to_create_license_file_in_empty_project_spec.rb
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Show > User uploads files' do
RSpec.describe 'Projects > Show > User uploads files' do
include DropzoneHelper
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
shared_examples_for 'snippet editor' do
RSpec.shared_examples_for 'snippet editor' do
before do
stub_feature_flags(snippets_edit_vue: false)
end
......@@ -138,7 +138,7 @@ shared_examples_for 'snippet editor' do
end
end
describe 'Projects > Snippets > Create Snippet', :js do
RSpec.describe 'Projects > Snippets > Create Snippet', :js do
include DropzoneHelper
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Snippets > Project snippet', :js do
RSpec.describe 'Projects > Snippets > Project snippet', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
let(:snippet) { create(:project_snippet, project: project, file_name: file_name, content: content) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Snippets > User comments on a snippet', :js do
RSpec.describe 'Projects > Snippets > User comments on a snippet', :js do
let_it_be(:project) { create(:project) }
let_it_be(:user) { create(:user) }
let_it_be(:snippet) { create(:project_snippet, :repository, project: project, author: user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Snippets > User deletes a snippet' do
RSpec.describe 'Projects > Snippets > User deletes a snippet' do
let(:project) { create(:project) }
let!(:snippet) { create(:project_snippet, project: project, author: user) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Snippets > User updates a snippet', :js do
RSpec.describe 'Projects > Snippets > User updates a snippet', :js do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project, namespace: user.namespace) }
let_it_be(:snippet, reload: true) { create(:project_snippet, :repository, project: project, author: user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Snippets > User views snippets' do
RSpec.describe 'Projects > Snippets > User views snippets' do
let_it_be(:project) { create(:project) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Sourcegraph Content Security Policy' do
RSpec.describe 'Sourcegraph Content Security Policy' do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project, :repository, namespace: user.namespace) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Subgroup Issuables', :js do
RSpec.describe 'Subgroup Issuables', :js do
let!(:group) { create(:group, name: 'group') }
let!(:subgroup) { create(:group, parent: group, name: 'subgroup') }
let!(:project) { create(:project, namespace: subgroup, name: 'project') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Download buttons in tags page' do
RSpec.describe 'Download buttons in tags page' do
let(:user) { create(:user) }
let(:role) { :developer }
let(:status) { 'success' }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project > Tags', :js do
RSpec.describe 'Project > Tags', :js do
include DropzoneHelper
let(:user) { create(:user) }
......
# frozen_string_literal: true
require 'spec_helper'
describe 'User views tags', :feature do
RSpec.describe 'User views tags', :feature do
context 'rss' do
shared_examples 'has access to the tags RSS feed' do
it do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Multi-file editor new directory', :js do
RSpec.describe 'Multi-file editor new directory', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Multi-file editor new file', :js do
RSpec.describe 'Multi-file editor new file', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Project Tree RSS' do
RSpec.describe 'Project Tree RSS' do
let(:user) { create(:user) }
let(:project) { create(:project, :repository, visibility_level: Gitlab::VisibilityLevel::PUBLIC) }
let(:path) { project_tree_path(project, :master) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects tree', :js do
RSpec.describe 'Projects tree', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
let(:gravatar_enabled) { true }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Multi-file editor upload file', :js do
RSpec.describe 'Multi-file editor upload file', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
let(:txt_file) { File.join(Rails.root, 'spec', 'fixtures', 'doc_sample.txt') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User changes public project visibility', :js do
RSpec.describe 'User changes public project visibility', :js do
include ProjectForksHelper
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User creates a project', :js do
RSpec.describe 'User creates a project', :js do
let(:user) { create(:user) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > User sees sidebar' do
RSpec.describe 'Projects > User sees sidebar' do
let(:user) { create(:user) }
let(:project) { create(:project, :private, public_builds: false, namespace: user.namespace) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User sees user popover', :js do
RSpec.describe 'User sees user popover', :js do
include Spec::Support::Helpers::Features::NotesHelpers
let_it_be(:project) { create(:project, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User uses shortcuts', :js do
RSpec.describe 'User uses shortcuts', :js do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User views an empty project' do
RSpec.describe 'User views an empty project' do
let(:project) { create(:project, :empty_repo) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'View on environment', :js do
RSpec.describe 'View on environment', :js do
let(:branch_name) { 'feature' }
let(:file_path) { 'files/ruby/feature.rb' }
let(:project) { create(:project, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Wiki > User previews markdown changes', :js do
RSpec.describe 'Projects > Wiki > User previews markdown changes', :js do
let_it_be(:user) { create(:user) }
let(:project) { create(:project, :wiki_repo, namespace: user.namespace) }
let(:wiki_page) { create(:wiki_page, wiki: project.wiki, title: 'home', content: '[some link](other-page)') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Wiki shortcuts', :js do
RSpec.describe 'Wiki shortcuts', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :wiki_repo, namespace: user.namespace) }
let(:wiki_page) { create(:wiki_page, wiki: project.wiki, title: 'home', content: 'Home page') }
......
......@@ -2,7 +2,7 @@
require "spec_helper"
describe "User creates wiki page" do
RSpec.describe "User creates wiki page" do
include WikiHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User deletes wiki page', :js do
RSpec.describe 'User deletes wiki page', :js do
let(:user) { create(:user) }
let(:project) { create(:project, :wiki_repo, namespace: user.namespace) }
let(:wiki_page) { create(:wiki_page, wiki: project.wiki) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Wiki > User views Git access wiki page' do
RSpec.describe 'Projects > Wiki > User views Git access wiki page' do
let(:user) { create(:user) }
let(:project) { create(:project, :wiki_repo, :public) }
let(:wiki_page) { create(:wiki_page, wiki: project.wiki, title: 'home', content: '[some link](other-page)') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User updates wiki page' do
RSpec.describe 'User updates wiki page' do
include WikiHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User views empty wiki' do
RSpec.describe 'User views empty wiki' do
let(:user) { create(:user) }
shared_examples 'empty wiki and accessible issues' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'Projects > Wiki > User views wiki in project page' do
RSpec.describe 'Projects > Wiki > User views wiki in project page' do
let(:user) { create(:user) }
before do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User views a wiki page' do
RSpec.describe 'User views a wiki page' do
include WikiHelpers
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe 'User views wiki pages' do
RSpec.describe 'User views wiki pages' do
include WikiHelpers
let(:user) { create(:user) }
......
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