Fix spec
This commit is contained in:
parent
8ca9bf1d3b
commit
e7bf621ab1
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ describe API::V3::Files, api: true do
|
|||
let!(:project) { create(:project_empty_repo, namespace: user.namespace ) }
|
||||
|
||||
it "creates a new file in project repo" do
|
||||
post api("/projects/#{project.id}/repository/files", user), valid_params
|
||||
post v3_api("/projects/#{project.id}/repository/files", user), valid_params
|
||||
|
||||
expect(response).to have_http_status(201)
|
||||
expect(json_response['file_path']).to eq('newfile.rb')
|
||||
|
|
Loading…
Reference in a new issue