summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2017-07-20 23:09:46 +0000
committerThe Bundler Bot <bot@bundler.io>2017-07-20 23:09:46 +0000
commitd273f2116e5e7de1f8c453a15487e1699d2c08f5 (patch)
tree35a75a257c923a618ff7f71534bf365d39a83a7a /spec/bundler
parent4da6724d61257d658c048b83e5b60be91d6658a6 (diff)
parent6a635dea7c7a36ab8087d6b042915c83c9575c3f (diff)
downloadbundler-d273f2116e5e7de1f8c453a15487e1699d2c08f5.tar.gz
Auto merge of #5885 - bundler:seg-yaml-empty-string-values, r=segiddins
[YAMLSerializer] Handle empty strings properly ### What was the end-user problem that led to this PR? The problem was that empty strings in YAML were being read in as empty hashes. Closes https://github.com/bundler/bundler/issues/5881. ### What was your diagnosis of the problem? My diagnosis was we needed to fix the YAML Serializer to understand `""` as an empty string. ### What is your fix for the problem, implemented in this PR? My fix ensures that a hash isn't created when the parser encounters `""`.
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/yaml_serializer_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/bundler/yaml_serializer_spec.rb b/spec/bundler/yaml_serializer_spec.rb
index 2970fb44ec..1241c74bbf 100644
--- a/spec/bundler/yaml_serializer_spec.rb
+++ b/spec/bundler/yaml_serializer_spec.rb
@@ -167,6 +167,7 @@ RSpec.describe Bundler::YAMLSerializer do
"What did the sea say to the sand?",
"Nothing, it simply waved.",
],
+ "array with empty string" => [""],
},
"sales" => {
"item" => "A Parachute",