sjgdev
1
Right now I have this
lineitem_00001:
id: 1
orderrequest_id: 1
product_id: 5
quantity: 20
total_price: <%= 20 * Product.find_by_id(5).price%>
Is it possible for the yaml parser to do something like this:?
total_price: <%= quantity * Product.find_by_id(product_ID).price%>
sjgdev
2
On second hand, nevermind… I dont need to do this
sjgdev
3
sjgdev wrote:
On second hand, nevermind… I dont need to do this
Please supply what you did do. Otherwise, you left an enticing hit
for a Google search on [dynamic yaml fixtures], with no conclusion.
–
Phlip