From 46efcb8af8e84f25fc9609433cf82d849edacf13 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 13 Apr 2022 13:47:03 -0700 Subject: [PATCH] Fix hash usage in mapper test --- test/unit/plugins/commands/serve/mappers_test.rb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/test/unit/plugins/commands/serve/mappers_test.rb b/test/unit/plugins/commands/serve/mappers_test.rb index 9ef890db8..7aa8e353d 100644 --- a/test/unit/plugins/commands/serve/mappers_test.rb +++ b/test/unit/plugins/commands/serve/mappers_test.rb @@ -10,11 +10,16 @@ describe VagrantPlugins::CommandServe::Mappers do context "Hash" do it "unwraps wrapper types when they show up in the Hash" do input = Hashicorp::Vagrant::Sdk::Args::Hash.new( - fields: { - "error_check" => Google::Protobuf::Any.pack( - Google::Protobuf::BoolValue.new(value: false) + entries: [ + Hashicorp::Vagrant::Sdk::Args::HashEntry.new( + key: Google::Protobuf::Any.pack( + Hashicorp::Vagrant::Sdk::Args::Symbol.new(str: "error_check") + ), + value: Google::Protobuf::Any.pack( + Google::Protobuf::BoolValue.new(value: false) + ) ) - } + ] ) output = subject.map(input, to: Hash)