summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2018-05-29 11:44:58 +0200
committerToon Claes <toon@gitlab.com>2018-05-29 11:45:17 +0200
commit1298fbe18d648a206f42d9e2737ee30acffcbf38 (patch)
tree0c2a7cb51654742daa70a8d7e57fb18227dc4b3a
parent607225923008d62a3fa9fafb1a33205d28456d5f (diff)
downloadgitlab-ce-1298fbe18d648a206f42d9e2737ee30acffcbf38.tar.gz
Fix small typos
-rw-r--r--app/controllers/groups/shared_projects_controller.rb2
-rw-r--r--spec/controllers/groups/shared_projects_controller_spec.rb8
2 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/groups/shared_projects_controller.rb b/app/controllers/groups/shared_projects_controller.rb
index 34ba32ce95b..f2f835767e0 100644
--- a/app/controllers/groups/shared_projects_controller.rb
+++ b/app/controllers/groups/shared_projects_controller.rb
@@ -21,7 +21,7 @@ module Groups
def finder_params
@finder_params ||= begin
- # Make the `search` param consitent for the frontend,
+ # Make the `search` param consistent for the frontend,
# which will be using `filter`.
params[:search] ||= params[:filter] if params[:filter]
params.permit(:sort, :search)
diff --git a/spec/controllers/groups/shared_projects_controller_spec.rb b/spec/controllers/groups/shared_projects_controller_spec.rb
index f8d1c13416d..d8fa41abb18 100644
--- a/spec/controllers/groups/shared_projects_controller_spec.rb
+++ b/spec/controllers/groups/shared_projects_controller_spec.rb
@@ -13,9 +13,9 @@ describe Groups::SharedProjectsController do
).execute(group)
end
- let(:group) { create(:group) }
- let(:user) { create(:user) }
- let!(:shared_project) do
+ set(:group) { create(:group) }
+ set(:user) { create(:user) }
+ set(:shared_project) do
shared_project = create(:project, namespace: user.namespace)
share_project(shared_project)
@@ -37,7 +37,7 @@ describe Groups::SharedProjectsController do
expect(json_project_ids).to contain_exactly(shared_project.id)
end
- it 'allows fitlering shared projects' do
+ it 'allows filtering shared projects' do
project = create(:project, :archived, namespace: user.namespace, name: "Searching for")
share_project(project)