diff --git a/lib/generators/oaken/convert/fixtures_generator.rb b/lib/generators/oaken/convert/fixtures_generator.rb index 1710fc0..45f70d3 100644 --- a/lib/generators/oaken/convert/fixtures_generator.rb +++ b/lib/generators/oaken/convert/fixtures_generator.rb @@ -50,7 +50,7 @@ def recursive_convert(input, key: nil) when Array then input.map { recursive_convert _1 }.join(", ") when Integer then input else - if key == @referenced&.first + if key && key == @referenced&.first @referenced.last == :plural ? "[#{input}]" : input else "\"#{input}\""