debian-mirror-gitlab/spec/controllers/projects/git_http_controller_spec.rb
2019-05-18 00:54:41 +05:30

15 lines
377 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe Projects::GitHttpController do
describe 'HEAD #info_refs' do
it 'returns 403' do
project = create(:project, :public, :repository)
head :info_refs, params: { namespace_id: project.namespace.to_param, project_id: project.path + '.git' }
expect(response.status).to eq(403)
end
end
end