Skip to content

Commit b3184b8

Browse files
committed
Fix tests to work with YAML.safe_load
1 parent bc036da commit b3184b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/protobuf_nested_struct_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ module ProtobufNestedStruct
231231
]
232232
}
233233

234-
hash2 = YAML.load(YAML.dump(hash))
234+
hash2 = YAML.safe_load(YAML.dump(hash), permitted_classes: [Date, Time])
235235
v = Value.new
236236
v.from_ruby(hash)
237237
expect(v.to_ruby).to eql(hash2)

0 commit comments

Comments
 (0)