util.roles: Fix tests to use autogenerated role id
authorMatthew Wild <mwild1@gmail.com>
Sat, 08 Oct 2022 20:39:14 +0100
changeset 12758 a92ca737d05f
parent 12757 2eb02b32bb4c
child 12759 a09dacf660d2
util.roles: Fix tests to use autogenerated role id
spec/util_roles_spec.lua
--- a/spec/util_roles_spec.lua	Sat Oct 08 20:33:01 2022 +0100
+++ b/spec/util_roles_spec.lua	Sat Oct 08 20:39:14 2022 +0100
@@ -26,7 +26,7 @@
 				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 ()