Commit graph

6 commits

Author SHA1 Message Date
Nick Thomas
21779d0018
Add metadata about the GitLab server to GraphQL 2019-03-05 15:00:32 +00:00
Rémy Coutable
d50a80a282
Replace Gitlab::REVISION with Gitlab.revision and handle installations without a .git directory
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-24 10:14:01 +02:00
Lin Jen-Shin
0fd4a6b637 Introduce have_gitlab_http_status
So that whenever this failed:

    expect(response).to have_gitlab_http_status(200)

We see what's the response there. Here's an example:

```
1) API::Settings Settings PUT /application/settings custom repository storage type set in the config updates application settings
   Failure/Error: expect(response).to have_gitlab_http_status(200)
     expected the response to have status code 200 but it was 400. The response was: {"error":"password_authentication_enabled, signin_enabled are mutually exclusive"}
```
2017-07-15 01:43:26 +08:00
Jacopo
ff76adb547 Unnecessary "include WaitForAjax" and "include ApiHelpers"
Removed all the unnecessary include of `WaitForAjax` and `ApiHelpers` in the specs.
Removed unnecessary usage of `api:true`
2017-04-21 22:32:02 +02:00
Livier
eb4f15571d Changed API spec files to describe the correct class
Restore changes for api spec files

Fix error in rspec Users

Delete extra space Repositories-spec
2016-11-28 10:55:27 -07:00
Robert Schilling
b998479c81 API: Version information 2016-10-12 16:47:35 +02:00