daveworth/Indirizzo — comment on commit e32f033dba1b8d1f1681c02cba9c98539c542000
File: test/test_address.rb line 78
By daveworth:

I tried that to no avail! Maybe we can pair for 5-10min on Monday?

Dave

Sent from my tiny iKeyboard with fat fingers.

On Dec 17, 2011, at 9:35 AM, Andy Lindeman wrote:

> Something that might work to do one test per fixture with test::unit is:
>
> ```ruby
> [
> {
> :text => "1600 ...",
> },
> {
> :text => "1005 ...",
> }
> # etc...
> ].each_with_index do |fixture, index|
> define_method("test_fixture_" + index) do
> check_addr(fixture)
> end
> end
> ```
>
> You might be able to get fancier with better method names too at some point.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/daveworth/Indirizzo/commit/e32f033dba1b8d1f1681c02cba9c98539c542000#commitcomment-803157