bernd / fpm-cookery

A tool for building software packages with fpm.
Other
460 stars 88 forks source link

Explicitly convert `recipe.to_json.lines` to an array in recipe spec #183

Closed tomeon closed 7 years ago

tomeon commented 7 years ago

Fixes a bug introduced in #165 by yours truly.

Ruby 1.9's String#lines returns an Enumerator, unlike later Rubies where it returns an Array. This PR updates recipe_spec.rb, calling #to_a to avoid a NoMethodError when running tests on pre-2.0 Rubies.

bernd commented 7 years ago

Thank you!