diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-10-08 20:39:14 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-10-08 20:39:14 +0100 |
commit | c6c5fec97e139ba432252d1b9370b75ad8e34c49 (patch) | |
tree | 693f86b7f215ad2c3cccac7035f53d21fbd089dc /spec | |
parent | e3d1958cc4f94d51030c2dac92ea6df5bb346995 (diff) | |
download | prosody-c6c5fec97e139ba432252d1b9370b75ad8e34c49.tar.gz prosody-c6c5fec97e139ba432252d1b9370b75ad8e34c49.zip |
util.roles: Fix tests to use autogenerated role id
Diffstat (limited to 'spec')
-rw-r--r-- | spec/util_roles_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util_roles_spec.lua b/spec/util_roles_spec.lua index 81723657..44d2a977 100644 --- a/spec/util_roles_spec.lua +++ b/spec/util_roles_spec.lua @@ -26,7 +26,7 @@ describe("util.roles", function () id = "test-role-2"; name = "Test Role 2"; }); - assert.truthy(tostring(test_role_2):find("test-role-2", 1, true)); + assert.truthy(tostring(test_role_2):find(test_role_2.id, 1, true)); assert.truthy(tostring(test_role_2):find("Test Role 2", 1, true)); end); it("is restrictive by default", function () |