Commit c746cf70 authored by Luke Duncalfe's avatar Luke Duncalfe

Move PathLocksControllerSpec to /controllers

The majority of controllers are tested in controller specs, rather than
request specs, so moving this test to there too.
parent 301d302c
require 'rails_helper'
describe Projects::PathLocksController, type: :controller do
describe Projects::PathLocksController do
let(:project) { create(:project, :repository, :public) }
let(:user) { project.owner }
let(:file_path) { 'files/lfs/lfs_object.iso' }
......@@ -22,7 +22,7 @@ describe Projects::PathLocksController, type: :controller do
let(:project) { create(:project, :repository, :public, :repository_private) }
let(:user) { create(:user) }
it 'renders a 404' do
it 'does not allow access' do
get :index, params: { namespace_id: project.namespace, project_id: project }
expect(response).to have_gitlab_http_status(404)
......
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