diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/fixtures/api/schemas/statistics.json | 6 | ||||
-rw-r--r-- | spec/requests/api/statistics_spec.rb | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/spec/fixtures/api/schemas/statistics.json b/spec/fixtures/api/schemas/statistics.json index ef2f39aad9d..63bdd67d442 100644 --- a/spec/fixtures/api/schemas/statistics.json +++ b/spec/fixtures/api/schemas/statistics.json @@ -8,9 +8,6 @@ "snippets", "ssh_keys", "milestones", - "users", - "projects", - "groups", "active_users" ], "properties" : { @@ -21,9 +18,6 @@ "snippets'": { "type": "string" }, "ssh_keys'": { "type": "string" }, "milestones'": { "type": "string" }, - "users'": { "type": "string" }, - "projects'": { "type": "string" }, - "groups'": { "type": "string" }, "active_users'": { "type": "string" } } } diff --git a/spec/requests/api/statistics_spec.rb b/spec/requests/api/statistics_spec.rb index 55184271245..39fa549fc90 100644 --- a/spec/requests/api/statistics_spec.rb +++ b/spec/requests/api/statistics_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe API::Statistics, 'Statistics' do @@ -36,7 +38,6 @@ describe API::Statistics, 'Statistics' do projects = create_list(:project, 4, namespace: create(:namespace, owner: admin)) issues = create_list(:issue, 2, project: projects.first, updated_by: admin) - create_list(:group, 2) create_list(:snippet, 2, :public, author: admin) create_list(:note, 2, author: admin, project: projects.first, noteable: issues.first) create_list(:milestone, 3, project: projects.first) @@ -52,9 +53,6 @@ describe API::Statistics, 'Statistics' do expect(json_response['forks']).to eq('0') expect(json_response['ssh_keys']).to eq('1') expect(json_response['milestones']).to eq('3') - expect(json_response['users']).to eq('1') - expect(json_response['projects']).to eq('4') - expect(json_response['groups']).to eq('2') expect(json_response['active_users']).to eq('1') end end |