Closed tomeon closed 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.
String#lines
Enumerator
Array
recipe_spec.rb
#to_a
NoMethodError
Thank you!
Fixes a bug introduced in #165 by yours truly.
Ruby 1.9's
String#lines
returns anEnumerator
, unlike later Rubies where it returns anArray
. This PR updatesrecipe_spec.rb
, calling#to_a
to avoid aNoMethodError
when running tests on pre-2.0 Rubies.