Fix test description

This commit is contained in:
Martin Lensment 2015-04-16 11:48:50 +03:00
parent 64e532c53d
commit 669c28377b
4 changed files with 13 additions and 13 deletions

View file

@ -1,5 +1,5 @@
## GET /repp/v1/accounts/balance
Returns domains of the current registrar.
Returns account balance of the current registrar.
#### Request

View file

@ -23,23 +23,23 @@ Content-Type: application/json
```
HTTP/1.1 200
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 533
Content-Length: 524
Content-Type: application/json
{
"contacts": [
{
"id": 1,
"code": "sh135909910",
"code": "sh523328490",
"phone": "+372.12345678",
"email": "natasha.bechtelar@breitenberg.name",
"email": "corene_koch@caspermoen.net",
"fax": null,
"created_at": "2015-04-16T08:44:33.041Z",
"updated_at": "2015-04-16T08:44:33.041Z",
"created_at": "2015-04-16T08:48:39.551Z",
"updated_at": "2015-04-16T08:48:39.551Z",
"ident": "37605030299",
"ident_type": "priv",
"auth_info": "password",
"name": "Miss Sherwood Jacobi0",
"name": "Alana Williamson II0",
"org_name": null,
"registrar_id": 1,
"creator_str": null,
@ -79,7 +79,7 @@ Content-Type: application/json
{
"contacts": [
"sh056866451"
"sh629765881"
],
"total_number_of_records": 2
}

View file

@ -32,14 +32,14 @@ Content-Type: application/json
"id": 1,
"name": "domain0.ee",
"registrar_id": 1,
"registered_at": "2015-04-16T08:44:33.499Z",
"registered_at": "2015-04-16T08:48:39.995Z",
"status": null,
"valid_from": "2015-04-16T00:00:00.000Z",
"valid_to": "2016-04-16T00:00:00.000Z",
"owner_contact_id": 1,
"auth_info": "d081ba64515bc8ae9a512a98e6b1baa1",
"created_at": "2015-04-16T08:44:33.496Z",
"updated_at": "2015-04-16T08:44:33.496Z",
"auth_info": "3ec9a29d618023920b61758c339b638f",
"created_at": "2015-04-16T08:48:39.992Z",
"updated_at": "2015-04-16T08:48:39.991Z",
"name_dirty": "domain0.ee",
"name_puny": "domain0.ee",
"period": 1,

View file

@ -9,7 +9,7 @@ describe Repp::AccountV1 do
end
describe 'GET /repp/v1/accounts/balance' do
it 'returns domains of the current registrar', autodoc: true, route_info_doc: true do
it 'returns account balance of the current registrar', autodoc: true, route_info_doc: true do
get_with_auth '/repp/v1/accounts/balance', {}, @api_user
response.status.should == 200