edit specs to more idiomatic ruby