Add test for admin info

This commit is contained in:
Alexander Meindl 2021-12-09 07:53:48 +01:00
parent a0ca97a85e
commit c4bfe5b5fe

View File

@ -0,0 +1,18 @@
# frozen_string_literal: true
require File.expand_path '../../test_helper', __FILE__
class AdminControllerTest < Additionals::ControllerTest
fixtures :users, :email_addresses, :roles
def setup
User.current = nil
@request.session[:user_id] = 1
end
def test_info
get :info
assert_response :success
assert_select 'table.list tr.system_info'
end
end