Commit 1298fbe1 authored by Toon Claes's avatar Toon Claes

Fix small typos

parent 60722592
...@@ -21,7 +21,7 @@ module Groups ...@@ -21,7 +21,7 @@ module Groups
def finder_params def finder_params
@finder_params ||= begin @finder_params ||= begin
# Make the `search` param consitent for the frontend, # Make the `search` param consistent for the frontend,
# which will be using `filter`. # which will be using `filter`.
params[:search] ||= params[:filter] if params[:filter] params[:search] ||= params[:filter] if params[:filter]
params.permit(:sort, :search) params.permit(:sort, :search)
......
...@@ -13,9 +13,9 @@ describe Groups::SharedProjectsController do ...@@ -13,9 +13,9 @@ describe Groups::SharedProjectsController do
).execute(group) ).execute(group)
end end
let(:group) { create(:group) } set(:group) { create(:group) }
let(:user) { create(:user) } set(:user) { create(:user) }
let!(:shared_project) do set(:shared_project) do
shared_project = create(:project, namespace: user.namespace) shared_project = create(:project, namespace: user.namespace)
share_project(shared_project) share_project(shared_project)
...@@ -37,7 +37,7 @@ describe Groups::SharedProjectsController do ...@@ -37,7 +37,7 @@ describe Groups::SharedProjectsController do
expect(json_project_ids).to contain_exactly(shared_project.id) expect(json_project_ids).to contain_exactly(shared_project.id)
end end
it 'allows fitlering shared projects' do it 'allows filtering shared projects' do
project = create(:project, :archived, namespace: user.namespace, name: "Searching for") project = create(:project, :archived, namespace: user.namespace, name: "Searching for")
share_project(project) share_project(project)
......
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