use eval() instead of send() in test

This commit is contained in:
erik-krogh
2023-01-05 20:03:51 +01:00
parent d9176541c6
commit f98ff65b11

View File

@@ -22,7 +22,7 @@ class Foobar
end
def named_code(code)
foo.send("def \n #{code} \n end") # OK - parameter is named code
eval("def \n #{code} \n end") # OK - parameter is named code
end
def joinStuff(my_arr)