This commit is contained in:
Douwe Maan 2017-03-01 17:17:35 -06:00
parent 8ca9bf1d3b
commit e7bf621ab1

View file

@ -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')