Commit 7cdb9480 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'fix-setup-grammar-4-ee-only' into 'master'

Fix setup to set-up in EE-only code (Specs and a model)

See merge request gitlab-org/gitlab-ee!7349
parents 9626df38 64dc0fcc
......@@ -45,7 +45,7 @@ class GithubService < Service
end
def disabled_title
'Please setup a pipeline on your repository.'
'Please set up a pipeline on your repository.'
end
def execute(data)
......
......@@ -29,7 +29,7 @@ describe Projects::MirrorsController do
end
context 'when trying to create a mirror with the same URL' do
it 'does not setup the mirror' do
it 'does not set up the mirror' do
do_put(project, mirror: true, import_url: remote_mirror.url)
expect(project.reload.mirror).to be_falsey
......@@ -46,7 +46,7 @@ describe Projects::MirrorsController do
end
context 'mirror user is not the current user' do
it 'does not setup the mirror' do
it 'does not set up the mirror' do
new_user = create(:user)
project.add_maintainer(new_user)
......
......@@ -14,7 +14,7 @@ describe('Sidebar Weight', function () {
beforeEach(() => {
SidebarWeight = Vue.extend(sidebarWeight);
// Setup the stores, services, etc
// Set up the stores, services, etc
sidebarMediator = new SidebarMediator(Mock.mediator);
});
......
......@@ -132,7 +132,7 @@ describe Gitlab::Geo::Fdw, :geo do
describe 'has_foreign_schema?' do
context 'with functional FDW environment' do
it 'returns true' do
# When testing it locally, make sure you have FDW setup correctly.
# When testing it locally, make sure you have FDW set up correctly.
# If you are using GDK, you can run, from GDK root folder:
#
# make postgresql/geo-fdw/test
......@@ -155,7 +155,7 @@ describe Gitlab::Geo::Fdw, :geo do
describe 'connection_exist?' do
context 'with functional FDW environment' do
it 'returns true' do
# When testing it locally, make sure you have FDW setup correctly.
# When testing it locally, make sure you have FDW set up correctly.
# If you are using GDK, you can run, from GDK root folder:
#
# make postgresql/geo-fdw/test
......
......@@ -33,7 +33,7 @@ describe Gitlab::LegacyGithubImport::ProjectCreator do
expect { service.execute(params) }.to change(Project, :count).by(1)
end
it 'calls the service to setup the project' do
it 'calls the service to set up the project' do
expect(CiCd::SetupProject).to receive_message_chain(:new, :execute)
service.execute(params)
......
......@@ -183,7 +183,7 @@ describe GithubService do
it 'raises error if no pipeline found' do
project.pipelines.delete_all
expect { test_data }.to raise_error 'Please setup a pipeline on your repository.'
expect { test_data }.to raise_error 'Please set up a pipeline on your repository.'
end
it 'generates data for latest pipeline' do
......
......@@ -18,7 +18,7 @@ describe API::Projects do
}
end
it 'creates new project with pull mirroring setup' do
it 'creates new project with pull mirroring set up' do
post api('/projects', user), mirror_params
expect(response).to have_gitlab_http_status(201)
......@@ -195,7 +195,7 @@ describe API::Projects do
)
end
it 'updates project without mirror attributes when the project is unable to setup repository mirroring' do
it 'updates project without mirror attributes when the project is unable to set up repository mirroring' do
stub_licensed_features(repository_mirrors: false)
put(api("/projects/#{project.id}", user), mirror_params)
......
......@@ -24,7 +24,7 @@ describe Projects::CreateService, '#execute' do
stub_licensed_features(ci_cd_projects: true)
end
it 'calls the service to setup CI/CD on the project' do
it 'calls the service to set up CI/CD on the project' do
expect(CiCd::SetupProject).to receive_message_chain(:new, :execute)
create_project(user, opts)
......@@ -36,7 +36,7 @@ describe Projects::CreateService, '#execute' do
stub_licensed_features(ci_cd_projects: false)
end
it "doesn't call the service to setup CI/CD on the project" do
it "doesn't call the service to set up CI/CD on the project" do
expect(CiCd::SetupProject).not_to receive(:new)
create_project(user, opts)
......
......@@ -14,7 +14,7 @@ shared_examples 'a read-only GitLab instance' do
allow(Gitlab::Geo).to receive(:secondary_with_primary?).and_return(secondary_with_primary)
end
context 'that is incorrectly setup' do
context 'that is incorrectly set up' do
let(:secondary_with_primary) { false }
let(:error_message) { "You can't push code to a read-only GitLab instance." }
......@@ -25,7 +25,7 @@ shared_examples 'a read-only GitLab instance' do
end
end
context 'that is correctly setup' do
context 'that is correctly set up' do
let(:secondary_with_primary) { true }
let(:payload) do
{
......
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