diff --git a/test/unit/plugins/commands/serve/mappers_test.rb b/test/unit/plugins/commands/serve/mappers_test.rb index 9dcf17e27..0d291da6d 100644 --- a/test/unit/plugins/commands/serve/mappers_test.rb +++ b/test/unit/plugins/commands/serve/mappers_test.rb @@ -23,8 +23,23 @@ describe VagrantPlugins::CommandServe::Mappers do ) output = subject.map(input, to: Hash) - expect(output["error_check"]).to eq(false) expect(output[:error_check]).to eq(false) + + input = Hashicorp::Vagrant::Sdk::Args::Hash.new( + entries: [ + Hashicorp::Vagrant::Sdk::Args::HashEntry.new( + key: Google::Protobuf::Any.pack( + Google::Protobuf::StringValue.new(value: "error_check") + ), + value: Google::Protobuf::Any.pack( + Google::Protobuf::BoolValue.new(value: false) + ) + ) + ] + ) + output = subject.map(input, to: Hash) + + expect(output["error_check"]).to eq(false) end end