File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def serialize_attributes
35
35
36
36
@attributes . each do |key , value |
37
37
result [ key . to_s ] = {
38
- value : value . to_s ,
38
+ value : value ,
39
39
type : value_type ( value )
40
40
}
41
41
end
Original file line number Diff line number Diff line change 97
97
hash = event . to_hash
98
98
99
99
expect ( hash [ :attributes ] [ "string_attr" ] ) . to eq ( { value : "string value" , type : "string" } )
100
- expect ( hash [ :attributes ] [ "integer_attr" ] ) . to eq ( { value : "42" , type : "integer" } )
101
- expect ( hash [ :attributes ] [ "boolean_attr" ] ) . to eq ( { value : " true" , type : "boolean" } )
102
- expect ( hash [ :attributes ] [ "float_attr" ] ) . to eq ( { value : " 3.14" , type : "double" } )
100
+ expect ( hash [ :attributes ] [ "integer_attr" ] ) . to eq ( { value : 42 , type : "integer" } )
101
+ expect ( hash [ :attributes ] [ "boolean_attr" ] ) . to eq ( { value : true , type : "boolean" } )
102
+ expect ( hash [ :attributes ] [ "float_attr" ] ) . to eq ( { value : 3.14 , type : "double" } )
103
103
end
104
104
end
105
105
end
You can’t perform that action at this time.
0 commit comments