Changeset

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 12753:2eb02b32bb4c
children 12755:a09dacf660d2
files spec/util_roles_spec.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 ()