From: Marnen Laibow-Koser Date: 2009-12-04T10:30:33+09:00 Subject: Re: Variable references in yaml files dara wrote: > Actually, thinking just a little further, your suggestion of merging > hashes is probably the way to go. Similar to below, but instead of the > convoluted substitution hash, I can just merge a hash of on-the-fly > expected results with the hard-coded ones. > > So the solution doesn't really scratch my itch of hoping to keep all > the expected results in one place, but I think I straightened out my > thinking and learned something in the process. Thanks! Two ideas: 1. Rails preprocesses some of its YAML configuration files with ERb. You might try that. 2. If you need dynamic results, perhaps YAML is not the right tool. Perhaps Ruby, possibly with a test library, would be better. Best, --  Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.