aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-10-08 20:39:14 +0100
committerMatthew Wild <mwild1@gmail.com>2022-10-08 20:39:14 +0100
commitc6c5fec97e139ba432252d1b9370b75ad8e34c49 (patch)
tree693f86b7f215ad2c3cccac7035f53d21fbd089dc /spec
parente3d1958cc4f94d51030c2dac92ea6df5bb346995 (diff)
downloadprosody-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.lua2
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 ()