Fix hash usage in mapper test

This commit is contained in:
Chris Roberts 2022-04-13 13:47:03 -07:00 committed by Paul Hinze
parent 702c877aa6
commit 46efcb8af8
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -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)