diff options
author | Mickael Remond <mremond@process-one.net> | 2016-04-12 10:34:24 +0200 |
---|---|---|
committer | Mickael Remond <mremond@process-one.net> | 2016-04-12 10:34:24 +0200 |
commit | cd2e2b1a880f93b7198bbc17cb1d9be2c23048e8 (patch) | |
tree | ce38fa8eac3e4540e4792d39f059f6f04a4fab9b /test/mod_admin_extra_test.exs | |
parent | Allow testing user pattern directly in access rules (diff) |
Synchronizing master changes
Diffstat (limited to 'test/mod_admin_extra_test.exs')
-rw-r--r-- | test/mod_admin_extra_test.exs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/mod_admin_extra_test.exs b/test/mod_admin_extra_test.exs index d104ed05..2029cf68 100644 --- a/test/mod_admin_extra_test.exs +++ b/test/mod_admin_extra_test.exs @@ -73,13 +73,13 @@ defmodule EjabberdModAdminExtraTest do EjabberdAuthMock.create_user @user, @domain, @password assert :ejabberd_commands.execute_command(:check_password, - [@user, <<"">>, @domain, @password]) + [@user, @domain, @password]) refute :ejabberd_commands.execute_command(:check_password, - [@user, <<"">>, @domain, "bad_password"]) + [@user, @domain, "bad_password"]) refute :ejabberd_commands.execute_command(:check_password, - [@user, <<"">>, "bad_domain", @password]) + [@user, "bad_domain", @password]) refute :ejabberd_commands.execute_command(:check_password, - ["bad_user", <<"">>, @domain, @password]) + ["bad_user", @domain, @password]) assert :meck.validate :ejabberd_auth @@ -117,9 +117,9 @@ defmodule EjabberdModAdminExtraTest do assert :ejabberd_commands.execute_command(:change_password, [@user, @domain, "new_password"]) refute :ejabberd_commands.execute_command(:check_password, - [@user, <<"">>, @domain, @password]) + [@user, @domain, @password]) assert :ejabberd_commands.execute_command(:check_password, - [@user, <<"">>, @domain, "new_password"]) + [@user, @domain, "new_password"]) assert {:not_found, 'unknown_user'} == catch_throw :ejabberd_commands.execute_command(:change_password, ["bad_user", @domain, |