Add test for admin info
This commit is contained in:
parent
a0ca97a85e
commit
c4bfe5b5fe
18
test/functional/admin_controller_test.rb
Normal file
18
test/functional/admin_controller_test.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user