diff spec/util_roles_spec.lua @ 12754:a92ca737d05f

util.roles: Fix tests to use autogenerated role id
author Matthew Wild <mwild1@gmail.com>
date Sat, 08 Oct 2022 20:39:14 +0100
parents 2eb02b32bb4c
children ed210f6b1d00
line wrap: on
line diff
--- 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 ()