Expect standard users in the result set, not the other way around

Makes it possible to run this test case against a node
that also has non-standard users.
This commit is contained in:
Michael Klishin 2016-05-21 15:32:29 +03:00
parent 50b65e4fb1
commit 496fb7ef03
1 changed files with 4 additions and 4 deletions

View File

@ -56,8 +56,8 @@ defmodule ListUsersCommandTest do
capture_io(fn ->
matches_found = ListUsersCommand.run([], context[:opts])
assert Enum.all?(matches_found, fn(user) ->
Enum.find(context[:std_result], fn(found) -> found == user end)
assert Enum.all?(context[:std_result], fn(user) ->
Enum.find(matches_found, fn(found) -> found == user end)
end)
end)
end
@ -74,8 +74,8 @@ defmodule ListUsersCommandTest do
capture_io(fn ->
matches_found = ListUsersCommand.run([], context[:opts])
assert Enum.all?(matches_found, fn(user) ->
Enum.find(context[:std_result], fn(found) -> found == user end)
assert Enum.all?(context[:std_result], fn(user) ->
Enum.find(matches_found, fn(found) -> found == user end)
end)
end)
end