diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-14 00:16:40 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-14 00:16:40 +0300 |
commit | cc8b8ec08f176dfdad71f8efdf92ebd512664c3d (patch) | |
tree | 19d12d6c94b20977206b96334610847dd75061a2 /spec/requests/api | |
parent | 1809f6f631c79a6dac8373782c4931393edcc7ff (diff) |
Add docs and specs
Diffstat (limited to 'spec/requests/api')
-rw-r--r-- | spec/requests/api/labels_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/requests/api/labels_spec.rb b/spec/requests/api/labels_spec.rb index 49eea2e362b..9e27685e13d 100644 --- a/spec/requests/api/labels_spec.rb +++ b/spec/requests/api/labels_spec.rb @@ -22,7 +22,7 @@ describe API::Labels do expected_keys = %w( id name color description open_issues_count closed_issues_count open_merge_requests_count - subscribed priority + subscribed priority is_project_label ) get api("/projects/#{project.id}/labels", user) @@ -46,6 +46,7 @@ describe API::Labels do expect(label1_response['description']).to be_nil expect(label1_response['priority']).to be_nil expect(label1_response['subscribed']).to be_falsey + expect(label1_response['is_project_label']).to be_truthy expect(group_label_response['open_issues_count']).to eq(1) expect(group_label_response['closed_issues_count']).to eq(0) @@ -55,6 +56,7 @@ describe API::Labels do expect(group_label_response['description']).to be_nil expect(group_label_response['priority']).to be_nil expect(group_label_response['subscribed']).to be_falsey + expect(group_label_response['is_project_label']).to be_falsey expect(priority_label_response['open_issues_count']).to eq(0) expect(priority_label_response['closed_issues_count']).to eq(0) @@ -64,6 +66,7 @@ describe API::Labels do expect(priority_label_response['description']).to be_nil expect(priority_label_response['priority']).to eq(3) expect(priority_label_response['subscribed']).to be_falsey + expect(priority_label_response['is_project_label']).to be_truthy end end |