3 class AclTest < ActiveSupport::TestCase
11 def test_no_account_creation_by_subnet
12 assert !Acl.no_account_creation("192.168.1.1")
13 create(:acl, :address => "192.168.0.0/16", :k => "no_account_creation")
14 assert Acl.no_account_creation("192.168.1.1")
17 def test_no_account_creation_by_domain
18 assert !Acl.no_account_creation("192.168.1.1", "example.com")
19 create(:acl, :domain => "example.com", :k => "no_account_creation")
20 assert Acl.no_account_creation("192.168.1.1", "example.com")