From c6c5fec97e139ba432252d1b9370b75ad8e34c49 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 8 Oct 2022 20:39:14 +0100 Subject: util.roles: Fix tests to use autogenerated role id --- spec/util_roles_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') 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 () -- cgit v1.2.3