[Ruby] Dynamic tests

Ryan Davis ryand-ruby at zenspider.com
Thu Oct 12 19:16:46 PDT 2006


On Oct 12, 2006, at 6:20 PM, Geoffrey Grosenbach wrote:

> I'm using define_method to automate the building of some repetitive
> test cases.
>
> This works great when running the test file directly, but doesn't
> work when using the Rake Test task (the dynamically created methods
> are never created):
>
> Is there a clean way to do this with the Rake::TestTask? Or, do I
> just need to change the test task so it executes the relevant file
> from the shell?

Can you show us the current file and source layout? I've got a  
similar bug reported against autotest.



More information about the Ruby mailing list