Update ruby bindings for add_policy and add_policy_from_file to return package name (#240)

This commit is contained in:
thedavemarshall
2024-05-18 10:18:36 -05:00
committed by GitHub
parent 56bd8841d0
commit 0952d42432
5 changed files with 20 additions and 19 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ class TestRegorus < Minitest::Test
end
def test_policy_addition
assert_silent { @engine.add_policy("example.rego", example_policy) }
# returns the package name from the REGO, not the filename
assert_equal "data.regorus_test", @engine.add_policy("example.rego", example_policy)
end
def test_object_creation_with_new