writing more idiomatic ruby in an attempt to figure out why a test is failing on traivs in ruby 2.0 but can't reproduce on my workstation argh