2020-10-27 00:51:19 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2011-10-25 06:30:23 +08:00
|
|
|
#
|
2017-04-28 12:06:26 +08:00
|
|
|
# Copyright (C) 2011 - present Instructure, Inc.
|
2011-10-25 06:30:23 +08:00
|
|
|
#
|
|
|
|
# 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/>.
|
|
|
|
#
|
|
|
|
|
2021-02-26 23:33:26 +08:00
|
|
|
# TODO: When CanvasSecurity has replaced all callsites for Canvas::Security,
|
|
|
|
# we won't need this shim anymore, and can drop this test verifying it.
|
2011-10-25 06:30:23 +08:00
|
|
|
describe Canvas::Security do
|
2017-08-01 04:02:44 +08:00
|
|
|
describe '.config' do
|
2021-02-26 23:33:26 +08:00
|
|
|
it 'shim works' do
|
|
|
|
expect(Canvas::Security.config).to_not be_nil
|
2017-08-01 04:02:44 +08:00
|
|
|
end
|
|
|
|
end
|
2011-10-25 06:30:23 +08:00
|
|
|
end
|