diff options
author | Mickaël Rémond <mremond@process-one.net> | 2016-08-01 15:36:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-01 15:36:47 +0200 |
commit | 2ef58a33a9c3384429508bac60db8c322f4fc782 (patch) | |
tree | 5aaeefc8302746943c7f584ca16a95fce86e747e /test/ejabberd_commands_mock_test.exs | |
parent | Remove compile warning (diff) | |
parent | Improve error message when try to call api on api root (diff) |
Merge pull request #1223 from processone/expand_api
More API fixes and improvements
Diffstat (limited to 'test/ejabberd_commands_mock_test.exs')
-rw-r--r-- | test/ejabberd_commands_mock_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ejabberd_commands_mock_test.exs b/test/ejabberd_commands_mock_test.exs index 439a3c1d3..9d33d7573 100644 --- a/test/ejabberd_commands_mock_test.exs +++ b/test/ejabberd_commands_mock_test.exs @@ -174,7 +174,7 @@ defmodule EjabberdCommandsMockTest do # default version is latest one assert :result3 == :ejabberd_commands.execute_command(command_name, []) # no such command in APIv0 - assert :unknown_command == + assert {:error, :unknown_command} == catch_throw :ejabberd_commands.execute_command(command_name, [], 0) assert :result1 == :ejabberd_commands.execute_command(command_name, [], 1) assert :result1 == :ejabberd_commands.execute_command(command_name, [], 2) |