]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/acl_test.rb
Merge remote-tracking branch 'upstream/pull/3393'
[rails.git] / test / models / acl_test.rb
index ad17fc1b0eddcb9fb908196ee88188955ab3db1d..49f065612ffa8459d6198466e35deede9b55302a 100644 (file)
@@ -16,8 +16,10 @@ class AclTest < ActiveSupport::TestCase
 
   def test_no_account_creation_by_domain
     assert_not Acl.no_account_creation("192.168.1.1", :domain => "example.com")
+    assert_not Acl.no_account_creation("192.168.1.1", :domain => "test.example.com")
     create(:acl, :domain => "example.com", :k => "no_account_creation")
     assert Acl.no_account_creation("192.168.1.1", :domain => "example.com")
+    assert Acl.no_account_creation("192.168.1.1", :domain => "test.example.com")
   end
 
   def test_no_account_creation_by_mx