# frozen_string_literal: true

#
# Copyright (C) 2012 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.

require_relative "../common"
require_relative "../helpers/basic/statistics_specs"

describe "account admin statistics" do
  describe "shared statistics specs" do
    let(:url) { "/accounts/#{Account.default.id}/statistics" }
    let(:account) { Account.default }
    let(:list_css) { { created: "#recently_created_item_list", started: "#recently_started_item_list", ended: "#recently_ended_item_list", logged_in: "#recently_logged_in_item_list" } }

    it_behaves_like "statistics basic tests"
  end
end
