18F / open-data-maker

make it easy to turn a lot of potentially large csv files into easily accessible open data
Other
199 stars 135 forks source link

fix withdotkeys loosing ancestor keys on deep hashes #315

Open kynetiv opened 8 years ago

kynetiv commented 8 years ago

This fixes #231

The withdotkeys method is dropping the ancestor key after traversing two steps deep into a nested hash. This PR retains the full dotted-key hash path for the string so the desired fields for CSV download are included. Also updated the nested_has spec to test withdotkeys method on deep hashes.