Fix tests
This commit is contained in:
parent
eef129bd4a
commit
d70f1f35b1
1 changed files with 2 additions and 2 deletions
|
@ -144,13 +144,13 @@ describe Ci::API::API do
|
||||||
it "using token as parameter" do
|
it "using token as parameter" do
|
||||||
post authorize_url, { token: build.project.token }, headers
|
post authorize_url, { token: build.project.token }, headers
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
expect(json_response["temp_path"]).to_not be_nil
|
expect(json_response["TempPath"]).to_not be_nil
|
||||||
end
|
end
|
||||||
|
|
||||||
it "using token as header" do
|
it "using token as header" do
|
||||||
post authorize_url, {}, headers_with_token
|
post authorize_url, {}, headers_with_token
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
expect(json_response["temp_path"]).to_not be_nil
|
expect(json_response["TempPath"]).to_not be_nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue