mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
Update ruby bindings for add_policy and add_policy_from_file to return package name (#240)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user